ankr_getNFTMetadata

Retrieves metadata for the specified NFT (ERC721/ERC1155/ENS/POAP).

Request

This endpoint expects an object.
contractAddressstringRequired
Address of the NFT contract the metadata belongs to. Supports ENS.
blockchainenumOptional
Name of the blockchain.
forceFetchbooleanOptional

Get NFT metadata from the contract (true) or database (false).

tokenIdstringOptional
Token ID of the NFT the metadata belongs to. Created by the contract when minting the NFT.

Response

Result returned by ankr_getNFTMetadata.

attributesobject or null
Attributes of the NFT.
metadataobject or null
Metadata of the NFT.