The ERC721Metadata interface is an optional interface to add other metadata details to your ERC721 NFTs. The developers can choose to add a token name, a token symbol, and a token URI as metadata to an ERC721 token. If they want to use these metadata fields for their token, they can use the ERC721Metadata contract; otherwise, they can ignore this. The interface provides the following view functions:
- name(): The function returns the full name of the ERC721 NFT as a string datatype.
- symbol(): The function returns the token symbol of the ERC721 NFT as a string datatype.
- tokenURI(): The function returns the Uniform Resource Identifier (URI) as a string datatype. The URI may contain a location to a JSON file. The JSON schema file is present on GitHub, at https://github.com/PacktPublishing/Mastering-Solidity/blob/master...