Skip to content

TON

TON's client API is not a plain HTTP RPC on the node — the validator-engine speaks only the liteserver ADNL binary protocol. We bridge it with ton-http-api (TonCenter v2 dialect), which talks ADNL to our liteserver and exposes HTTP JSON-RPC at the /ton gateway path.

Endpoint

Endpointhttps://rpc.au.ro/ton
ProtocolTonCenter-style API — JSON-RPC (POST /ton/jsonRPC) + REST (GET /ton/getMasterchainInfo, getTransactions, runGetMethod, sendBoc, …)
SDK@ton/ton TonClient with endpoint + the gateway API key
js
import { TonClient } from '@ton/ton'

const client = new TonClient({
  // the gateway authenticates the request; pass your project key via the
  // X-API-Key header (apiKey below is appended as ?api_key= by @ton/ton — both
  // are accepted).
  endpoint: 'https://rpc.au.ro/ton',
  apiKey: '<your-project-api-key>',
})

const info = await client.getMasterchainInfo()
console.log(info.latestSeqno)

A bare GET https://rpc.au.ro/ton/getMasterchainInfo (with your key) returns the live masterchain tip — a quick way to smoke-test connectivity.