GETGet token data

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getTokenData
CU60

Returns metadata for Jetton or NFT contracts. Automatically detects the contract type and returns appropriate fields. For Jetton masters: total supply, admin, metadata. For Jetton wallets: balance, owner. For NFT items: collection, owner, content. For NFT collections: item count, metadata.

Query Parameters
addressstringrequired

The account address to query, in raw or user-friendly format.

Responses
okbooleanrequired

Returns true if the request succeeded; otherwise false. See the error field for details.

resultoneOfrequired

Response data. Present only when ok is true.

object 1object
@typestring (enum)required

TonLib type identifier for Jetton master contract data. Refer to the token type reference for a full list.

addressstringrequired

Contract address of this Jetton master.

contract_typestring (enum)required

Type of token contract: jetton_master, jetton_wallet, nft_collection, or nft_item.

total_supplystringrequired

Total tokens in circulation, in the smallest unit. Divide by 10^decimals for human-readable amount.

mintablebooleanrequired

Returns true if new tokens can be minted; otherwise false.

admin_addressstring

Admin address that can mint tokens or update metadata. Empty if admin rights were revoked.

jetton_contentobjectrequired

Token metadata: name, symbol, decimals, description, and image URL.

typestring (enum)required

Storage method for token (jetton) metadata content: onchain (stored in contract data) or offchain (external URI).

dataoneOfrequired

Token metadata key-value pairs (name, symbol, decimals, image, description).

string 1string
object 2object
jetton_wallet_codestringrequired

Code used to deploy individual user wallets for this token. Used to verify wallet authenticity.

object 2object
@typestring (enum)required

TonLib type identifier for Jetton wallet contract data. Refer to the token type reference for a full list.

addressstringrequired

Contract address of this Jetton wallet.

contract_typestring (enum)required

Type of token contract: jetton_master, jetton_wallet, nft_collection, or nft_item.

balancestringrequired

The token balance in the Jetton's base units (smallest denomination). To get the human-readable amount, divide by 10^decimals, where decimals is a metadata field on the Jetton master contract (commonly 9, but varies per token). Refer to the Jetton overview for how Jetton decimals are defined.

ownerstringrequired

Wallet owner's address (the user who holds these tokens).

jettonstringrequired

Address of the Jetton master contract this wallet belongs to.

mintless_is_claimedboolean

Returns true if the mintless jetton allocation has been claimed; otherwise false.

jetton_wallet_codestringrequired

Wallet contract code. Should match the master contract's wallet code to verify authenticity.

object 3object
@typestring (enum)required

TonLib type identifier for NFT collection contract data. Refer to the token type reference for a full list.

addressstringrequired

Contract address of this NFT collection.

contract_typestring (enum)required

Type of token contract: jetton_master, jetton_wallet, nft_collection, or nft_item.

next_item_indexstringrequired

Index that will be assigned to the next minted NFT. Also indicates total items if minted sequentially.

owner_addressstring

Collection owner's address. Controls minting and metadata updates.

collection_contentobjectrequired

Collection metadata: name, description, and cover image.

typestring (enum)required

Storage method for token (jetton) metadata content: onchain (stored in contract data) or offchain (external URI).

dataoneOfrequired

Token metadata key-value pairs (name, symbol, decimals, image, description).

string 1string
object 2object
object 4object
@typestring (enum)required

TonLib type identifier for NFT item contract data. Refer to the token type reference for a full list.

addressstringrequired

Contract address of this NFT item.

contract_typestring (enum)required

Type of token contract: jetton_master, jetton_wallet, nft_collection, or nft_item.

initbooleanrequired

Returns true if this NFT item has been initialized (deployed); otherwise false.

indexstringrequired

This item's sequential index within its collection.

collection_addressstring

Address of the NFT collection this item belongs to. Empty if standalone NFT.

owner_addressstring

Current owner's address. Changes on each transfer.

contentoneOfrequired

NFT item metadata and content (name, description, image URL).

object 1object
typestring (enum)required

Storage method for token (jetton) metadata content: onchain (stored in contract data) or offchain (external URI).

dataoneOfrequired

Token metadata key-value pairs (name, symbol, decimals, image, description).

string 1string
object 2object
object 2object
domainstringrequired

The resolved domain name.

dataobjectrequired

Parsed DNS records for this domain.

dns_next_resolveroneOf

Next resolver contract for subdomain lookups.

object 1object
@typestring (enum)required

TonLib type identifier for TON Storage DNS records. Refer to the TonLib type reference for a full list.

bag_idstringrequired

TON Storage bag identifier in hex, pointing to distributed file storage.

object 2object
@typestring (enum)required

TonLib type identifier for smart contract address DNS records. Refer to the TonLib type reference for a full list.

smc_addrobjectrequired

Smart contract address associated with this DNS record.

object 3object
@typestring (enum)required

TonLib type identifier for ADNL address DNS records. Refer to the TonLib type reference for a full list.

adnl_addrstringrequired

ADNL (Abstract Datagram Network Layer) address in hex, used for TON Sites and services.

object 4object
@typestring (enum)required

TonLib type identifier for next-resolver DNS records. Refer to the TonLib type reference for a full list.

resolverobjectrequired

Smart contract address of the next DNS resolver in the chain.

walletoneOf

Wallet address associated with this domain.

object 1object
@typestring (enum)required

TonLib type identifier for TON Storage DNS records. Refer to the TonLib type reference for a full list.

bag_idstringrequired

TON Storage bag identifier in hex, pointing to distributed file storage.

object 2object
@typestring (enum)required

TonLib type identifier for smart contract address DNS records. Refer to the TonLib type reference for a full list.

smc_addrobjectrequired

Smart contract address associated with this DNS record.

object 3object
@typestring (enum)required

TonLib type identifier for ADNL address DNS records. Refer to the TonLib type reference for a full list.

adnl_addrstringrequired

ADNL (Abstract Datagram Network Layer) address in hex, used for TON Sites and services.

object 4object
@typestring (enum)required

TonLib type identifier for next-resolver DNS records. Refer to the TonLib type reference for a full list.

resolverobjectrequired

Smart contract address of the next DNS resolver in the chain.

siteoneOf

Site hosting address (ADNL or TON Storage).

object 1object
@typestring (enum)required

TonLib type identifier for TON Storage DNS records. Refer to the TonLib type reference for a full list.

bag_idstringrequired

TON Storage bag identifier in hex, pointing to distributed file storage.

object 2object
@typestring (enum)required

TonLib type identifier for smart contract address DNS records. Refer to the TonLib type reference for a full list.

smc_addrobjectrequired

Smart contract address associated with this DNS record.

object 3object
@typestring (enum)required

TonLib type identifier for ADNL address DNS records. Refer to the TonLib type reference for a full list.

adnl_addrstringrequired

ADNL (Abstract Datagram Network Layer) address in hex, used for TON Sites and services.

object 4object
@typestring (enum)required

TonLib type identifier for next-resolver DNS records. Refer to the TonLib type reference for a full list.

resolverobjectrequired

Smart contract address of the next DNS resolver in the chain.

storageoneOf

TON Storage bag ID for files hosted under this domain.

object 1object
@typestring (enum)required

TonLib type identifier for TON Storage DNS records. Refer to the TonLib type reference for a full list.

bag_idstringrequired

TON Storage bag identifier in hex, pointing to distributed file storage.

object 2object
@typestring (enum)required

TonLib type identifier for smart contract address DNS records. Refer to the TonLib type reference for a full list.

smc_addrobjectrequired

Smart contract address associated with this DNS record.

object 3object
@typestring (enum)required

TonLib type identifier for ADNL address DNS records. Refer to the TonLib type reference for a full list.

adnl_addrstringrequired

ADNL (Abstract Datagram Network Layer) address in hex, used for TON Sites and services.

object 4object
@typestring (enum)required

TonLib type identifier for next-resolver DNS records. Refer to the TonLib type reference for a full list.

resolverobjectrequired

Smart contract address of the next DNS resolver in the chain.

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v2/getTokenData?address=EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "ext.tokens.jettonMasterData",
    "address": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
    "contract_type": "jetton_master",
    "total_supply": "1429976002510000",
    "mintable": true,
    "admin_address": "EQBkQP48aUEDg5Y5RRc8SxFHm_C5tNcJDlh3e9pYHC-ZmG2M",
    "jetton_content": {
      "type": "onchain",
      "data": {
        "decimals": "6",
        "uri": "https://tether.to/usdt-ton.json"
      }
    },
    "jetton_wallet_code": "te6cckEBAQEAIwAIQgKPRS16Tf10BmtoI2UXclntBXNENb52tf1L1divK3w9aCBrv3Y="
  },
  "@extra": "1795684375:12:76.279"
}