Skip to Content

🚧 These packages are still in development and may change rapidly as they are developed.

TypeScriptfetchTokenData

fetchTokenData

Function to fetch token (NFT) data for a given token address.

Usage

import { AptosJSProClient } from "@aptos-labs/js-pro"; const client = new AptosJSProClient({ /* ... */ }); const tokenData = await client.fetchTokenData({ address: "0xc7dfc262666b2d4f74c7e77a64fe21d3b24386628fb780f65522fc2c625819a2", });

Parameters

NameTypeDefault
addressstring

The token address (NFT) to fetch the token data for.

networkNetworkInfo

The network to use for the request. If not set, the network of the AptosJSProClient instance will be used.

Return Type

NameTypeDefault
amountnumber
cdnImageUristring | null
collectionstring
collectionDataCollectionData
collectionIdstring
creatorstring
descriptionstring
isFungibleV2boolean
isSoulboundboolean
lastTransactionTimestampstring
lastTransactionVersionstring
metadataUristring
namestring
tokenIdstring
tokenPropertiesJSONValue
tokenStandardTokenStandard
acquiredActivityBaseTokenActivity
createdActivityBaseTokenActivity
Last updated on