delegateERC1155

Allow the delegate to act on behalf of `msg.sender` for a specific amount of ERC1155 tokens

delegateERC1155( to: string, contract: string, tokenId: number, rights: string, amount: number ) ⇒ Promise< TransactionHash >

Returns the transaction hash of the submitted delegation.

Usage Example

const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const contract = "0x0000000000000000000000000000000000000002";
const tokenId = 5;
const amount = 1;
await v2.delegateERC1155(to, contract, tokenId, "", amount);

Last updated