getNFTMetadata
Gets the metadata associated with a given NFT.
Path parameters
Query parameters
String - Contract address for the NFT contract (ERC721 and ERC1155 supported).
String - The ID of the token. Can be in hex or decimal format.
String - ‘ERC721’ or ‘ERC1155’; specifies type of token to query for. API requests will perform faster if this is specified.
No set timeout by default - When metadata is requested, this parameter is the timeout (in milliseconds) for the website hosting the metadata to respond. If you want to only access the cache and not live fetch any metadata for cache misses then set this value to 0.
Defaults to false for faster response times. If true will refresh metadata for given token. If false will check the cache and use it or refresh if cache doesn’t exist.
Response
Object - Contract for returned NFT
String - Token balance
String - Name of the NFT asset.
String - Brief human-readable description
Relevant metadata for NFT contract. This is useful for viewing image url, traits, etc. without having to follow the metadata url in tokenUri to parse manually.
String - ISO timestamp of the last cache refresh for the information returned in the metadata field.
String - A string describing a particular reason that we were unable to fetch complete metadata for the NFT.
Information about whether and why a contract was marked as spam.
Only present if the request specified orderBy=transferTime
.