Skip to main content
The TON Center API provides developer access to the TON blockchain through REST and JSON-RPC endpoints. It allows applications to read blockchain data, run smart contract methods, and send transactions. TON Center serves as a public gateway to the TON network. It implements two types APIs, API v2 and API v3, that correspond to the non-indexed and indexed access layers. Applications interact with the TON blockchain by connecting to a TON node. Since nodes communicate through the binary ADNL protocol, an intermediate layer is needed for web-based access. API v2 provides this bridge by using tonlib to query data from liteservers and exposes it through a standard REST interface. API v3 extends this model by reading raw data from a node’s RocksDB storage, parsing and decoding that data, and storing it in PostgreSQL.

Base URLs

APIMainnetTestnet
API v2https://toncenter.com/api/v2https://testnet.toncenter.com/api/v2
API v3https://toncenter.com/api/v3https://testnet.toncenter.com/api/v3

Typical use cases

API v2

  • Query account balances and state
  • Run get-methods on smart contracts
  • Send or broadcast messages
  • Retrieve latest transactions and block information

API v3

  • Query historical transactions and traces
  • Retrieve decoded Jetton and NFT data
  • Run analytical or filtered searches across multiple accounts
  • Power explorers or reporting tools

Endpoints API v2

CategoryMethodDescription
AccountsGET /detectAddressDetect all address formats and return normalized versions
AccountsGET /getAddressBalanceGet balance for an address
AccountsGET /getAddressInformationGet account info including balance and state
AccountsGET /getExtendedAddressInformationExtended account info (wallet type, seqno, etc)
AccountsGET /getJettonBalancesGet Jetton balances for a wallet
AccountsGET /getMasterchainInfoExtGet extended masterchain info
AccountsGET /getNftItemsByCollectionAddressGet NFT items by collection
AccountsGET /getTokenDataGet Jetton metadata by master address
AccountsGET /packAddressConvert raw address to user-friendly format
AccountsGET /unpackAddressConvert user-friendly address to raw format
BlocksGET /getBlockHeaderGet block header metadata
BlocksGET /getBlockTransactionsGet transactions in a block
BlocksGET /getConfigParamGet specific config parameter
BlocksGET /getConfigAllGet all config parameters
BlocksGET /getMasterchainBlockSignaturesGet masterchain block signatures
BlocksGET /getMasterchainInfoGet last masterchain block info
BlocksGET /getRawBlockHeaderGet raw block header
BlocksGET /getRawMasterchainInfoGet raw masterchain info
BlocksGET /getRawShardBlockHeaderGet raw shard block header
BlocksGET /getTimeGet server time
BlocksGET /lookupBlockLookup block by seqno/lt/root hash
ConfigGET /getConfigParamGet specific config parameter
ConfigGET /getConfigAllGet all config parameters
TransactionsGET /getTransactionsGet account transactions
TransactionsGET /tryLocateSourceTxTry to find source transaction by message hash
TransactionsGET /tryLocateResultTxTry to find result transaction by message hash
Messages and transactionsPOST /sendBocSend BOC to the network
Messages and transactionsPOST /sendBocReturnHashSend BOC and return its hash
Messages and transactionsPOST /sendQuerySend external query to liteserver
Messages and transactionsGET /tryLocateTxTry to find transaction by message hash
Smart contractsPOST /runGetMethodRun a get-method on a smart contract
JSON-RPCPOST /jsonRPCProxy JSON-RPC requests to liteservers

Endpoints API v3

CategoryMethodDescription
AccountsGET /accountsList or search accounts with filters
AccountsGET /accounts/{account_id}Get account details by ID
AccountsGET /accounts/{account_id}/transactionsList transactions for an account
AccountsGET /accounts/{account_id}/actionsList high-level actions for an account (DEX, Jettons, NFTs, etc)
Actions and tracesGET /actionsList decoded high-level actions like swaps, transfers, or stake operations
Actions and tracesGET /tracesList full transaction traces with filters and pagination
Actions and tracesGET /emulateTraceEmulate a transaction trace for a given external message or BOC
Actions and tracesGET /emulateActionsClassify emulated traces into actions
Blockchain dataGET /transactions/{hash}Get transaction by hash
Blockchain dataGET /transactionsByMessageFind transactions by message hash
Blockchain dataGET /blocks/{workchain}/{shard}/{seqno}Get a specific block by coordinates
Blockchain dataGET /blocksSearch or filter blocks with pagination
Blockchain dataGET /messages/{hash}Get message by hash
Blockchain dataGET /messagesSearch messages with filters
Blockchain dataGET /validatorsGet current validators and info
Blockchain dataGET /masterchainGet masterchain status
Blockchain dataGET /shardsList active shards and their info
Blockchain dataGET /workchainsList all configured workchains
JettonsGET /jettonsList all Jetton contracts
JettonsGET /jettons/{master}Get Jetton master contract info
JettonsGET /jettons/{master}/holdersList holders of a Jetton
JettonsGET /jettons/{master}/transactionsGet Jetton transactions
NFTsGET /nftsList NFTs (items or collections)
NFTsGET /nfts/{collection}Get NFT collection details
NFTsGET /nfts/{collection}/{item}Get specific NFT item details
DNSGET /dns/{domain}Resolve TON DNS records
UtilsGET /estimateFeeEstimate fees for an external message
UtilsGET /detectAddressNormalize and inspect address formats
Stats and analyticsGET /statsRetrieve aggregated network and protocol statistics
Legacy (v2-compatible)POST /runGetMethodRun get-method
Legacy (v2-compatible)POST /sendBocSend BOC
Legacy (v2-compatible)POST /sendBocReturnHashSend BOC and return hash
Legacy (v2-compatible)GET /getAddressInformationGet address info
Legacy (v2-compatible)GET /getTransactionsGet transactions

How to access the API

Developers can access TON Center APIs either through hosted infrastructure managed by TON Center or by running their own instance.

Managed Service

Hosted access means using TON Center’s managed infrastructure instead of running your own node. This lets you connect to the network immediately, without setup or maintenance. You can start making requests without an API key at a default rate of 1 request per second. To increase this limit or access private liteservers, generate an API key and choose a plan that suits your needs.

Self-hosted service

Run your own TON Center infrastructure for full control over performance and data retention. Minimum recommended configuration: 16-core CPU, 128 GB RAM, 1 TB NVMe SSD, and 1 Gbps network connection.