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.
to | The address to act as delegate |
contract | The contract whose rights are being delegated |
tokenId | The token id for the token you're delegating |
rights | Specific subdelegation rights granted to the delegate, pass |
amount | The amount of that token id to delegate, > 0 delegates and 0 revokes |
Usage Example
Last updated