web3wagmi
← All standards

ERC-4671 Non-Tradable Tokens Standard

StagnantERCcreated 2022-01-13requires ERC-165

A standard interface for non-tradable tokens, aka badges or souldbound NFTs.

Authors: Omar Aflak (@omaraflak), Pol-Malo Le Bris, Marvin Martin (@MarvinMartin24)

ERC-165 interface ids

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

IERC46710xa511533d

Functions this standard introduces (4)

0x70a08231balanceOf(address)view
0x43945512hasValid(address)view
0xf577a500isValid(uint256)view
0x6352211eownerOf(uint256)view

Inherited (1)

0x01ffc9a7supportsInterface(bytes4)ERC-165

Optional extensions (6)

Interfaces the spec defines alongside the core one, which an implementation may or may not carry.

IERC4671Metadata0x5b5e139f

0x06fdde03name()
0x95d89b41symbol()
0xc87b56ddtokenURI(uint256)

IERC4671Enumerable0x2d57debd

0x26019c18emittedCount()
0x6b4ed21bholdersCount()
0x2f745c59tokenOfOwnerByIndex(address,uint256)
0x4f6ccce7tokenByIndex(uint256)

IERC4671Delegate0x945d689d

0x8ab65686delegate(address,address)
0x4214f1f2delegateBatch(address[],address[])
0x6a627842mint(address)
0x927f59bamintBatch(address[])
0xa4e2ee11issuerOf(uint256)

IERC4671Consensus0xe4126b64

0x350580eavoters()
0x0e801ee1approveMint(address)
0xdf97f56fapproveRevoke(uint256)

IERC4671Pull0xd992ad74

0xd992ad74pull(uint256,address,bytes)

IERC4671Store0xe18e09bd

0x0a3b0a4fadd(address)
0x29092d0eremove(address)
0xc2bc2efcget(address)

Events (4)

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

0x30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfeMinted(address,uint256)
0x713b90881ad62c4fa8ab6bd9197fa86481fc0c11b2edba60026514281b2dbac4Revoked(address,uint256)
0x938c63ac3d228b23f6bee7618fefc6790522e338ac202c958a2ea9eb9706c5d1Added(address,address)
0x40e634d0e26d9ec2e860e4dd9b7b2cfbb569b6058362a1a54d3a94718bc49587Removed(address,address)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion