Skip to main content

Token

The Token object represents a single NFT. It provides comprehensive on-chain data, metadata, ownership details, and lifecycle events.

type Token {
contract: Contract!
tokenID: String!
tokenURI: String
tokenURIStatus: TokenURIStatus
image: Image
metadataStatus: MetadataStatus
metadataContent: String
metadataContentType: String
createdAt: Time!
createdBlock: Int!
burnedAt: Time
burnedBlock: Int
errorMsg: String
name: String
description: String
expired: Boolean
dexTrades: Int!
holders(
first: Int = 10
skip: Int = 0
after: String
): Balances!
}

Fields

Token.contract ● Contract! non-null object

Token.tokenID ● String! non-null scalar

Token.tokenURI ● String scalar

Token.tokenURIStatus ● TokenURIStatus enum

Token.image ● Image object

Token.metadataStatus ● MetadataStatus enum

Token.metadataContent ● String scalar

Token.metadataContentType ● String scalar

Token.createdAt ● Time! non-null scalar

Token.createdBlock ● Int! non-null scalar

Token.burnedAt ● Time scalar

Token.burnedBlock ● Int scalar

Token.errorMsg ● String scalar

Token.name ● String scalar

Token.description ● String scalar

Token.expired ● Boolean scalar

Token.dexTrades ● Int! non-null scalar

Token.holders ● Balances! non-null object

Token.holders.first ● Int scalar
Token.holders.skip ● Int scalar
Token.holders.after ● String scalar

Returned By

token query

Member Of

Balance object ● Tokens object

Fields Descriptions

Field NameTypeDescription
contractContract!The contract that minted this token.
tokenIDString!The token ID.
tokenURIStringThe token URI.
tokenURIStatusTokenURIStatusThe status of the token URI.
imageImageThe image associated with this token.
metadataStatusMetadataStatusThe status of the metadata.
metadataContentStringThe metadata content.
metadataContentTypeStringThe content type of the metadata.
createdAtTime!When the token was created.
createdBlockInt!The block number at which the token was created.
burnedAtTimeWhen the token was burned (if applicable).
burnedBlockIntThe block number at which the token was burned (if applicable).
errorMsgStringError message (if any).
nameStringThe name of the token.
descriptionStringThe description of the token.
expiredBooleanWhether the token has expired.
holdersBalances!The quantity of holders of this token.

Example Query

query Query($contract: ID!, $tokenId: ID!) {
token(contract: $contract, tokenID: $tokenId) {
metadataContent
name
tokenID
tokenURI
description
holders {
balances {
owner
}
}
}
}

Use Cases

  • NFT Marketplaces (show NFT details like image, name, description).
  • Wallet Dashboards (retrieve metadata and NFT media for display).
  • Token Analytics (track mint/burn rates across collections).