TriportRPC

getVersion

POSThttps://triport.io/rpc/ton

Returns version and capability fields reported by the selected liteserver.

TON mainnetton:rpcfree+; ton_read_rpc: 15 / 20 / 100 / 250 RPS (free / basic / pro / business; default, unmeasured)

getVersion exposes the version and capability data returned by liteServer.getVersion. The values describe the selected upstream liteserver, not the Triport API version or the TON network protocol as a whole.

Use it for diagnostics and capability inspection. Applications that need chain progress should call getMasterchainInfo; applications that only need the server clock can call getTime.

The result schema intentionally allows additional properties because a liteserver can report implementation-defined version fields. This direct liteserver name has no public HTTP-gateway compatibility promise.

Parameters

JSON-RPC params is an empty by-name object.

Params: object (by-name).

optional
This method has no parameters; send params: {}.

Response

Response fields

FieldTypeDescription
jsonrpcstringJSON-RPC protocol version.
idnumber or stringCorrelates the response with the request.
resultobjectLiteserver version and capability result.
result.capabilitiesstringCapability value as returned by the captured liteserver.
result.modeintegerResponse mode value returned by the liteserver.
result.nowintegerUnix time reported with the version response.
result.versionintegerSelected liteserver's version value.

The response is copied from the accepted live fixture. Other liteservers may expose additional fields allowed by the OpenRPC schema.

Errors

See TON errors for the shared envelope.

CodeMeaningWhen it happens
-32602Invalid paramsThe parameter structure is malformed or positional.
-32601Method not foundThe method is outside the published read-only catalog.
401UnauthorizedThe API key is missing or invalid.
429Rate limitedThe ton_read_rpc budget is exceeded.

Examples

const response = await fetch("https://triport.io/rpc/ton", {
  method: "POST",
  headers: { "x-token": process.env.TRIPORT_API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ jsonrpc: "2.0", id: "version", method: "getVersion", params: {} }),
});
const { result: liteserver } = await response.json();

Notes

  • Treat all returned values as properties of the selected liteserver, not a uniform product-wide version declaration.
  • Requests use named params and batched responses are matched by id.
  • TON WebSocket diagnostics and public gateway upstreams are not published.
  • Related methods: getTime and getMasterchainInfo.