Get NFT data

Get NFT metadata from blockchain

sdk.nft.getMetadata(opts)

  • opts.tokenAddress (string) - token address only for ETHEREUM, CELO, AVAXCCHAIN, BSC, POLYGON, SOLANA and STRATUS.

  • opts.tokenId (string) - token id for ETHEREUM, CELO, AVAXCCHAIN, BSC, POLYGON, SOLANA and STRATUS.

  • opts.tokenUid (string) - token UID for HATHOR.

  • opts.protocol (string)(required) - blockchain protocol. Only for ETHEREUM, CELO, AVAXCCHAIN, BSC, POLYGON, SOLANA, HATHOR, STRATUS.

const metadata = await sdk.nft.getMetadata({
  tokenAddress: '0x999999999999',
  tokenId: '1000',
  protocol: 'POLYGON',
})

Last updated