delegateERC721

Allow the delegate to act on behalf of `msg.sender` for a specific ERC721 token

delegateERC721( to: string, contract: string, tokenId: number, rights: string, enable: boolean ) ⇒ 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 "" to encompass all rights

Usage Example

const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const contract = "0x0000000000000000000000000000000000000002";
const tokenId = 5;
await v2.delegateERC721(to, contract, tokenId, "", true);

Last updated