getVersionInfo — Stellar JSON-RPC
Returns version information of RPC and Captive Core through Stellar Soroban JSON-RPC.
https://triport.io/rpc/stellar- Network
- Stellar mainnet
- Scope
- stellar:rpc
- Auth
- x-token: $TRIPORT_API_KEY
- Rate limit
- stellar_read_rpc — 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (free / basic / pro / business) (plan policy); Burst capacity
Endpoint and plans: Stellar RPC endpoint.
Terms on this page: JSON-RPC.
Returns build and version metadata for Stellar RPC and its Captive Core, together with the protocol version.
Use it for diagnostics and compatibility checks. Use getNetwork for the passphrase or getHealth for readiness and retention.
Values can change when the selected node rotates or is upgraded; no SLA is attached to a particular upstream build.
Parameters
JSON-RPC params is a by-name object. Send an empty object ({}); this method defines no parameters.
——optionalResponse
The response is copied unchanged from the accepted fixture.
resultobjectresult.buildTimestampstringresult.captiveCoreVersionstringresult.commitHashstringresult.protocolVersionintegerresult.versionstringErrors
Errors use the standard JSON-RPC envelope. See Stellar errors and the shared error reference.
| Code | Meaning | When it happens |
|---|---|---|
-32602 | Invalid params | the by-name object or a field has the wrong type; positional-array style params are rejected. |
-32601 | Method not found | The method is absent from the published Stellar OpenRPC catalog. |
401 | Unauthorized | The API key is missing or invalid. |
429 | Rate limited | The stellar_read_rpc RPS budget is exceeded. |
Examples
JavaScript (fetch)
const request = {
"jsonrpc": "2.0",
"id": 1,
"method": "getVersionInfo",
"params": {}
};
const response = await fetch("https://triport.io/rpc/stellar", {
method: "POST",
headers: {
"x-token": process.env.TRIPORT_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify(request),
});
const payload = await response.json();
if (!response.ok || payload.error) throw new Error(JSON.stringify(payload.error));
console.log(payload.result);Notes
- Version strings are node-specific.
- The fixture uses illustrative
27.xstrings while preserving schema fields. - Related:
getNetworkandgetHealth. - This is a read-only surface. No write or transaction-submission method is published.