ERC-7496 NFT Dynamic Traits
Extension to ERC-721 and ERC-1155 for dynamic onchain traits
ERC-165 interface ids
Computed here as the XOR of the selectors each interface defines.
| IERC7496 | 0xaf332f3e |
Functions this standard introduces (4)
0xde475bf9 | getTraitMetadataURI() | view |
0xa28eec87 | getTraitValue(uint256,bytes32) | view |
0xf80ecba3 | getTraitValues(uint256,bytes32[]) | view |
0x2bf453e3 | setTrait(uint256,bytes32,bytes32) |
Events (6)
Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.
0x8386f3b08e49490d0c5a9d2c401c091f13b01a17d75ce4a2f0f8f923b410ff7d | TraitUpdated(bytes32,uint256,bytes32) | |
0x9a6c97c48b507ce8a38891ab26b440119b2f725c688fec730db4699bba6b24a7 | TraitUpdatedRange(bytes32,uint256,uint256) | |
0xa96ef7c0130afeab54b0046e6e2d01169250d194c74036ac03d0e58ac32422bf | TraitUpdatedRangeUniformValue(bytes32,uint256,uint256,bytes32) | |
0xa871bf661500ebea566fc58dd77242d75a9a3f659e5cb12e3bae0a05110561a1 | TraitUpdatedList(bytes32,uint256[]) | |
0x77679e37d5806f0b2f7f023c0b6124bd74d7abb9154942ee1303c8700b31bda7 | TraitUpdatedListUniformValue(bytes32,uint256[],bytes32) | |
0x0c42722a91eb9b96ce65a38fc22054e4d2ab7ab642a9c0f92da35c99d965a748 | TraitMetadataURIUpdated() |
Custom errors (2)
0xa0614c41 | TraitDoesNotExist(bytes32) | |
0xc927e5bf | TokenDoesNotExist(uint256) |
Depends on (3)
Proposals this one names in its requires field.
What the specification covers
Compare with
Parsed from the canonical specification · discussion