GET
/
v1
/
chains
/
{chainId}
/
nfts
/
collections
/
{address}
/
tokens
/
{tokenId}
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";

const avaCloudSDK = new AvaCloudSDK({
  chainId: "43114",
  network: "mainnet",
});

async function run() {
  const result = await avaCloudSDK.data.nfts.getTokenDetails({
    chainId: "43114",
    address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    tokenId: "145",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
  "name": "Wrapped AVAX",
  "symbol": "WAVAX",
  "ercType": "ERC-721",
  "tokenId": "<string>",
  "tokenUri": "<string>",
  "metadata": {
    "indexStatus": "indexed",
    "metadataLastUpdatedTimestamp": 123,
    "name": "<string>",
    "symbol": "<string>",
    "imageUri": "<string>",
    "description": "<string>",
    "animationUri": "<string>",
    "externalUrl": "<string>",
    "background": "<string>",
    "attributes": "<string>"
  },
  "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Path Parameters

chainId
string
required

A supported evm chain id or blockchain id. Use the /chains endpoint to get a list of supported chain ids.

address
string
required

Contract address on the relevant chain.

tokenId
string
required

TokenId on the contract

Response

200
application/json
Successful response
address
string
required

A wallet or contract address in mixed-case checksum encoding.

name
string
required

The contract name.

symbol
string
required

The contract symbol.

ercType
enum<string>
required
Available options:
ERC-721
tokenId
string
required
tokenUri
string
required
metadata
object
required
ownerAddress
string

A wallet or contract address in mixed-case checksum encoding.