diff --git a/src/modules/tag.ts b/src/modules/tag.ts index 09d037fb..c73d2846 100644 --- a/src/modules/tag.ts +++ b/src/modules/tag.ts @@ -1,4 +1,5 @@ import { BeeRequestOptions, Reference, Tag } from '../types' +import { EthAddress } from '../utils/eth' import { http } from '../utils/http' const endpoint = 'tags' @@ -12,11 +13,12 @@ interface GetAllTagsResponse { * * @param url Bee tag URL */ -export async function createTag(requestOptions: BeeRequestOptions): Promise { +export async function createTag(requestOptions: BeeRequestOptions, address?: EthAddress | string): Promise { const response = await http(requestOptions, { method: 'post', url: endpoint, responseType: 'json', + params: address, }) return response.data