checkDelegateForERC1155
Returns the amount of a ERC1155 tokens the delegate is granted rights to act on the behalf of
checkDelegateForERC11555( to
: string, from
: string, contract
: string, tokenId
: number, rights?
: string ) ⇒ Promise< number >
Returns the delegated balance, which will be 0 if the delegation does not exist
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