The Open Network (TON)

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

NetworkInterfaceEndpoint
MainnetV3 - Indexerhttps://ton-mainnet.gateway.tatum.io/api/v3
MainnetV2 - TON HTTP APIhttps://ton-mainnet.gateway.tatum.io
TestnetV3 - Indexerhttps://ton-testnet.gateway.tatum.io/api/v3
TestnetV2 - TON HTTP APIhttps://ton-testnet.gateway.tatum.io

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.

Get API keyFor free. No commitment.

The Open Network RPC at a glance

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

Testing without an API key? Free public endpoints are listed on The Open Network RPC at FREERPC.com.