web3wagmi
← All standards

ERC-4987 Held token interface

StagnantERCcreated 2021-09-21requires ERC-20, ERC-165, ERC-721, ERC-1155

Interface to query ownership and balance of held tokens

Author: Devin Conley (@devinaconley)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IERC20Holder0x74c89d54
IERC721Holder0x16b900ff
IERC1155Holder0xced24c37

Functions this standard introduces (3)

0xced24c37heldBalanceOf(address,address,uint256)view
0x74c89d54heldBalanceOf(address,address)view
0x62719dabheldOwnerOf(address,uint256)view

Inherited (1)

0x01ffc9a7supportsInterface(bytes4)ERC-165

Events (4)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0xc71fdc08141260a443e043c12977cd79f38a483a5d699fb3cf26d392b6c5538fHold(address,address,uint256)
0xcb54aad3bd772fcfe1bc124e01bd1a91a91c9d80126d8b3014c4d9e687d5ca48Release(address,address,uint256)
0x798405fcfe35651392d912beb1dfab78676446555cb469e46bc055948a9793c4Hold(address,address,uint256,uint256)
0x10b55f01b1cfe0feeb7d144f66162661602d8e73256499b6d8342aac37ff0679Release(address,address,uint256,uint256)

Depends on (4)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion