Configure Your Contract
Customizing the metadata for your smart contract
You can add a contractURI
method to your ERC721 contract that returns a URL for the storefront-level metadata for your contract.
This URL should return some data in the following format:
Contract metadata structure
name - (string,``
required
)
: Name of Collectiondescription - (string)
: Description of Collectionimage - (URL)
: Link to the collection's Logobanner_url - (URL)
: Link to the collection's Bannerwebsite_url - (URL)
: Link to The collection's official websitetwitter_url - (URL)
: Link to The collection's official Twitterdiscord_url - (URL)
: Link to The collection's official Discordinstagram_url - (URL)
: Link to The collection's official Instagramitem_width - (number)
: The width of the items in the collectionIt needs to be set with item_height to be displayed in the market in proportion to the item.
item_height - (number)
: The height of the items in the collectionIt needs to be set with item_width to be displayed in the market in proportion to the item.
creator_fee_basis_points - (number)
: A cut of every sale that the creator receives. The value ranges from 1 to 10000 (0.01% ~ 100.00%)creator_fee_recipient - (address): The address where the creator gets the cut
custom_currency - (address[]): The ERC20 currency allowed to be used in this collection
If not set, only native currency is supported by default
The zero address represents the native token
For example, set up ETH and WETH under Ethereum Goerli
custom_currency: ["0x0000000000000000000000000000000000000000", "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"]
custom_sort - (string[]): Custom sorting supported by this collection
For example
each NFT has a field whose type is number and called
rarity
in its metadata rootcustom_sort set to ["rarity"]
The market will support NFT ordering by rarity
Last updated