Skip to content

Instantly share code, notes, and snippets.

@michielmulders
Created September 30, 2020 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michielmulders/d67a57098e991cc83ad59bfc8970add2 to your computer and use it in GitHub Desktop.
Save michielmulders/d67a57098e991cc83ad59bfc8970add2 to your computer and use it in GitHub Desktop.
Solidity interface for ERC721 Metadata contract
interface ERC721Metadata {
/// @notice A descriptive name for a collection of NFTs in this contract
function name() external view returns (string _name);
/// @notice An abbreviated name for NFTs in this contract
function symbol() external view returns (string _symbol);
/// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
/// @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
/// 3986. The URI may point to a JSON file that conforms to the "ERC721
/// Metadata JSON Schema".
function tokenURI(uint256 _tokenId) external view returns (string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment