Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Requirement

Details

Authentication

  • In order to not expose API key, make calls server side

  • API key/secret to be provided

Endpoint

https://nft.api.infura.io/networks/{chainId}/nfts/{tokenAddress}/tokens/{tokenId}

API spec

https://docs.infura.io/infura/infura-expansion-apis/nft-api/rest-apis/api-reference/metadata

Request Parameters

  • chain_code to chainId mapping

    • ETH = 1

    • MATIC = 137

    • ARB1 = 42161

    • BSC = 56

    • AVAX = 43114

    • FTM = 250

  • tokenAddress - contract_address returned by /get_nfts_fio_address

  • tokenId - token_id returned by /get_nfts_fio_address

Response

  • metadata -> name - NFT Name

  • metadata -> image - NFT Image

  • metadata -> description- NFT Description

  • metadata -> external_url - External URL

  • metadata -> nft ->

    • name - NFT Name

    • image - NFT Image

    • description- NFT Description

    • external_url - External URL