getTokenData - Ton
getTokenData. Retrieves detailed information about a specific token, including its attributes, supply, and ownership details.
getTokenData - ton [Value: 100CU]
Retrieves detailed information about a specific token, including its attributes, supply, and ownership details.
Use cases
- Get metadata for a TON token
- Access token name, symbol, and supply
- Validate token details
Constraints
- Needs a valid token address
- Only supports existing tokens
- Depends on node sync
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request GET \
--url 'https://ton.drpc.org/rest/getTokenData?address=0:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef' \
--header 'accept: application/json'
Response
200
{
"ok": true,
"result": {
"total_supply": 1030000002000000,
"mintable": true,
"admin_address": "EQBkQP48aUEDg5Y5RRc8SxFHm_C5tNcJDlh3e9pYHC-ZmG2M",
"jetton_content": {
"type": "onchain",
"data": {
"uri": "https://tether.to/usdt-ton.json",
"decimals": "6"
}
},
"jetton_wallet_code": "te6cckEBAQEAIwAIQgKPRS16Tf10BmtoI2UXclntBXNENb52tf1L1divK3w9aCBrv3Y=",
"contract_type": "jetton_master"
}
}
Request params
string
addressstring
Identifier of the target TON account in any form.
Response
200
Response params
object
okboolean
Indicates if the request was successful.
resultobject
Contains the details of the jetton contract.
object
total_supplyinteger
The total supply of the jetton.
mintableboolean
Indicates if more jettons can be minted.
admin_addressstring
The address of the administrator of the jetton.
jetton_contentobject
Content information related to the jetton.
object
typestring
Type of content storage for the jetton (e.g., onchain).
dataobject
Additional data related to the jetton content.
object
uristring
URI linking to the jetton's metadata.
decimalsstring
The number of decimal places for the jetton.
jetton_wallet_codestring
The code for the jetton wallet.
contract_typestring
The type of contract, which is 'jetton_master' in this case.