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

Usage Example

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

/* returns example

1

*/

Last updated