I want to mint nft with a custom structure :
- 1 ipfs link to a png image
- 1 ipfs link to a xml file
- 1 ipfs link to binary file
- 10 key/value pair
How can i do that ? can i use erc721 or use other one ?
thanks.
You can use ERC721. You'd have 3 ways to go about it I think:
Create functions like tokenURI that would return the wanted address of the file.
OR
Create a structure that stores those info. And store it in a mapping. Something like:
Struct additionalInfo{
string xml;
string bin;
....
}
mapping(uint=>additionalInfo) public tokenInfos; ///tokenId to additionalInfos
Last way is like Casareafer said to do it offChain and simple intergrate this data in the metadata file.
Either onChain or offChain you'd have to write function in the front that can access this.