checkDelegateForERC721

Check if `to` is a delegate of `from` for the specific `contract` and `tokenId`, the entire `contract`, or the entire wallet

checkDelegateForERC721( to: string, from: string, contract: string, tokenId: number, rights?: string ) ⇒ Promise< boolean >

Returns true if delegate is granted to act on from's behalf for entire wallet, that contract, or that specific tokenId

Usage Example

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

/* returns example

true

*/

Last updated