2 releases
0.1.1 | Jul 23, 2022 |
---|---|
0.1.0 | Jul 4, 2022 |
#85 in #nft
29 downloads per month
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.2–1.6MB
~43K SLoC