API Types
High availability blockchain APIs are the core element of secure, convenient and fast development of useful applications on TON.
- TON HTTP API — API that allows to work with the indexed blockchain information.
- TON ADNL API — secure API to communicate with TON, based on ADNL protocol.
Toncenter APIs
- TON Index - TON Index collects data from a full node to PostgreSQL database and provides convenient API to an indexed blockchain.
- toncenter/v2 - This API enables HTTP access to TON blockchain - getting accounts and wallets information, looking up blocks and transactions, sending messages to the blockchain, calling get methods of smart contracts, and more.
Third party APIs
- tonapi.io - fast indexed API which provides basic data about accounts, transactions, blocks, application-specific data about NFT, Auctions, Jettons, TON DNS, Subscriptions. It also provides annotated data on transaction chains.
- TONX API - an API specifically designed for seamless Dapp development, enabling easy access to a variety of tools and data.
- dton.io - GraphQL API with that can provide data about accounts, transactions and blocks, as well as application-specific data about NFT, Auctions, Jettons and TON DNS.
- ton-api-v4 - another lite-api focused on speed via aggressive cashing in CDN.
- docs.nftscan.com - NFT APIs for TON blockchain.
- everspace.center - Simple RPC API for accessing TON Blockchain.
Additional APIs
Toncoin rate APIs
- https://docs.tonconsole.com/tonapi/rest-api/rates
- https://coinmarketcap.com/api/documentation/v1/
- https://apiguide.coingecko.com/getting-started
Address Convert APIs
info
It is preferable to convert address via local algorithm, read more in the Addresses section of documentation.
From Friendly to Raw form
/api/v2/unpackAddress
Curl
curl -X 'GET' \
'https://toncenter.com/api/v2/unpackAddress?address=EQApAj3rEnJJSxEjEHVKrH3QZgto_MQMOmk8l72azaXlY1zB' \
-H 'accept: application/json'
Response body
{
"ok": true,
"result": "0:29023deb1272494b112310754aac7dd0660b68fcc40c3a693c97bd9acda5e563"
}
From Friendly to Raw form
/api/v2/packAddress
Curl
curl -X 'GET' \
'https://toncenter.com/api/v2/packAddress?address=0%3A29023deb1272494b112310754aac7dd0660b68fcc40c3a693c97bd9acda5e563' \
-H 'accept: application/json'
Response body
{
"ok": true,
"result": "EQApAj3rEnJJSxEjEHVKrH3QZgto/MQMOmk8l72azaXlY1zB"
}