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
to
The delegated address to check
from
The potential address who delegated rights
contract
The address for the contract you're delegating
tokenId
The token id for the token you're delegating
rights (optional)
Specific rights to check for, pass nothing to ignore subdelegations and check full delegations only
Usage Example
Last updated