TON is a proof-of-stake Layer 1 that splits work across a masterchain and sharded workchains and runs smart contracts in the TON Virtual Machine.
TON validators reach consensus with Catchain 2.0, a protocol based on Simplex. Every account is a smart contract executed by the TON Virtual Machine, and contracts interact through asynchronous messages, so one operation can span several transactions. Addresses combine a workchain ID (0 for the basechain, -1 for the masterchain) with an account ID, in raw or user-friendly base64 form, and TON pays for computation, storage, and message forwarding. Nodes speak the binary ADNL protocol, so HTTP APIs wrap it.
The Open Network RPC endpoints
| Network | Interface | Endpoint |
|---|---|---|
| Mainnet | V3 - Indexer | https:/ |
| Mainnet | V2 - TON HTTP API | https:/ |
| Testnet | V3 - Indexer | https:/ |
| Testnet | V2 - TON HTTP API | https:/ |
HTTP requests take your API key in the x-api-key header. See Authentication.
For example, this request sends GET /blocks?limit=1&offset=0&sort=desc to The Open Network Mainnet through the V3 - Indexer interface:
curl 'https://ton-mainnet.gateway.tatum.io/api/v3/blocks?limit=1&offset=0&sort=desc' \
--header 'x-api-key: {YOUR_API_KEY}'Don't have an API key?
Sign up to Dashboard and create your API keys today. Get higher limits and use debugging tools.
The Open Network RPC at a glance
- Networks: Mainnet (Tier 2) and Testnet (Tier 3)
- Interfaces: REST
- Supported methods: 53 · REST API endpoints
- Native token:
TON - Block explorers: Mainnet · Testnet
- Network status: Mainnet · Testnet
- Authentication: API key in the
x-api-keyheader, see Authentication
Try The Open Network RPC
Get the latest The Open Network block
Sends GET /blocks?limit=1&offset=0&sort=desc to The Open Network Mainnet through Tatum RPC Gateway and shows the latest block number.
Get the The Open Network node version
Sends GET /masterchainInfo to The Open Network Mainnet through Tatum RPC Gateway and shows the node version and status.
To try more The Open Network methods, open the The Open Network Postman collection, set the gateway-api-key variable of the Tatum Gateway environment to your API key, and send any request.
The Open Network RPC methods
Methods each The Open Network interface supports, listed live from Tatum RPC Gateway.
V3 - Indexer
27 endpoints on Mainnet and Testnet. What each one does: The Open Network REST API endpoints.
GET /accountStates, GET /actions, GET /addressBook, GET /addressInformation, GET /adjacentTransactions, GET /blocks, GET /events, GET /jetton/burns, GET /jetton/masters, GET /jetton/transfers, GET /jetton/wallets, GET /masterchainBlockShards, GET /masterchainBlockShardState, GET /masterchainInfo, GET /messages, GET /nft/collections, GET /nft/items, GET /nft/transfers, GET /topAccountsByBalance, GET /transactions, GET /transactionsByMasterchainBlock, GET /transactionsByMessage, GET /walletInformation, GET /walletStates, POST /estimateFee, POST /message, POST /runGetMethod
V2 - TON HTTP API
28 endpoints on Mainnet and Testnet. What each one does: The Open Network REST API endpoints.
GET /detectAddress, GET /getAddressBalance, GET /getAddressInformation, GET /getAddressState, GET /getBlockHeader, GET /getBlockTransactions, GET /getBlockTransactionsExt, GET /getConfigParam, GET /getConsensusBlock, GET /getExtendedAddressInformation, GET /getMasterchainBlockSignatures, GET /getMasterchainInfo, GET /getShardBlockProof, GET /getTokenData, GET /getTransactions, GET /getWalletInformation, GET /lookupBlock, GET /packAddress, GET /tryLocateResultTx, GET /tryLocateSourceTx, GET /tryLocateTx, GET /unpackAddress, POST /estimateFee, POST /jsonRPC, POST /runGetMethod, POST /sendBoc, POST /sendBocReturnHash, POST /sendQuery
Every endpoint also lists its methods at runtime: /_methods (JSON) and /llms.txt (text), for example The Open Network Mainnet /_methods.
Method unavailable?If you need a method we don't support yet, contact support.
Related
- The Open Network RPC nodes on tatum.io: plans, pricing and dedicated nodes
- Supported Blockchains: every chain on Tatum RPC Gateway and its network tiers
- The Open Network official website: chain documentation
Testing without an API key? Free public endpoints are listed on The Open Network RPC at FREERPC.com.