getVersion
TON / https://triport.io/rpc/ton
Minimum tier: Free
Last updated:
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
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | ServerVersion |
Examples
curl https://triport.io/rpc/ton \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"getVersion","params":[]}'const res = await fetch("https://triport.io/rpc/ton", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "getVersion",
"params": []
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/rpc/ton",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"getVersion","params":[]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: TON.
- Clusters: mainnet.
- Credit cost: 1 per call.
FAQ
- What does getVersion do?
- Returns version and capability fields reported by the selected liteserver.
- How many credits does getVersion cost?
- getVersion costs 1 credit(s) per call on Triport by default.
- Is getVersion available over WebSocket?
- getVersion is an HTTP JSON-RPC method.