curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getTokenData
{
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"totalSupply": "<string>",
"mintable": true,
"burnable": true,
"address": "<string>"
}
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getTokenData
{
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"totalSupply": "<string>",
"mintable": true,
"burnable": true,
"address": "<string>"
}
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.
address
(string, required) — The address of the token contract. Example: EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
.curl -X POST \
'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "unpackAddress",
"params": {
"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
}
}'
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.getTokenData
method in TON is for applications that deal with TON-based tokens, such as:
The address of the token contract
Data about the specified token
The response is of type object
.
Was this page helpful?