Get NFT balance

Get NFT balance

sdk.nft.getBalance(opts)

  • opts.address (string)(required) - wallet address.

  • 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 and STRATUS.

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

Last updated