getTokenData
method retrieves data about a specific token on the TON blockchain. This method is useful for obtaining detailed information about TON-based tokens, including their name, symbol, supply, and other characteristics.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
TON pricing is the same for full, archive, v2, v3There’s no difference between a full node an archive node in data availability or pricing.
All data is always available and all node requests are consumed as 1 request unit.
All data is always available and all node requests are consumed as 1 request unit.
Parameters
address
(string, required) — The address of the token contract. Example:EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
.
JSON-RPC example
Shell
Response
name
(string) — The name of the token.symbol
(string) — The symbol or ticker of the token.decimals
(integer) — The number of decimal places for the token.totalSupply
(string) — The total supply of the token.mintable
(boolean) — Indicates whether new tokens can be minted.burnable
(boolean) — Indicates whether tokens can be burned (destroyed).address
(string) — The address of the token contract.
Use case
A possible use case for thegetTokenData
method in TON is for applications that deal with TON-based tokens, such as:
- Wallet applications displaying token information to users.
- Decentralized exchanges (DEXs) fetching token data for listing and trading purposes.
- Block explorers providing detailed token information.
- DApps that need to interact with various tokens and require their metadata.
Query Parameters
The address of the token contract
Response
200 - application/json
Data about the specified token
The name of the token
The symbol of the token
The number of decimal places for the token
The total supply of the token
Whether the token is mintable
Whether the token is burnable
The address of the token contract