#metadata #nft #erc-721 #erc-1155

erc-nft-metadata

Type definitions for non-fungible token (NFT) metadata

2 releases

0.1.1 Jul 23, 2022
0.1.0 Jul 4, 2022

#107 in #nft

Download history 18/week @ 2024-01-29 73/week @ 2024-02-05 36/week @ 2024-02-12 14/week @ 2024-02-19 17/week @ 2024-02-26 41/week @ 2024-03-04 10/week @ 2024-03-11 50/week @ 2024-03-18

119 downloads per month

MIT/Apache

10KB
183 lines

erc-nft-metadata

Type definitions for ERC-based non-fungible token (NFT) metadata.

While EIP-721 defines a "ERC-721 Metadata JSON Schema", in practice it is rarely used. Instead, this crate implements the more popular OpenSea metadata standard.

This crate does not attempt to perform validation more than what is strictly necessary. Since every secondary market will use the fields in the metadata in a different way, it is up to the crate consumer to make sure the fields are appropriately populated.

License: MIT OR Apache-2.0


lib.rs:

Type definitions for ERC-based non-fungible token (NFT) metadata.

While EIP-721 defines a "ERC-721 Metadata JSON Schema", in practice it is rarely used. Instead, this crate implements the more popular OpenSea metadata standard.

This crate does not attempt to perform validation more than what is strictly necessary. Since every secondary market will use the fields in the metadata in a different way, it is up to the crate consumer to make sure the fields are appropriately populated.

Dependencies

~1.5–2MB
~66K SLoC