TriportRPC

getVersion

Last updated:

`getVersion` reports the Solana software running on the node that handled your request. It takes no parameters and returns a small object with two fields: the human-readable `solana-core` release string and the numeric `feature-set` identifier that the node currently advertises.

Use it to confirm which cluster build is behind your endpoint — for example, to verify that a feature you depend on has shipped, or to log the node version alongside diagnostics when a response looks unexpected. Because it is cheap and parameter-free, it also doubles as a lightweight check that your endpoint and API key are wired up correctly.

The `feature-set` integer is a hash of the set of runtime features active on the node. Two nodes on the same release line can report the same `solana-core` string while differing on `feature-set` during a feature-activation rollout, so treat `feature-set` — not the version string — as the authoritative signal when you need to know exactly which features are live.

Parameters

This method takes no parameters.

Returns

getVersion return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getVersion","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "getVersion",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getVersion","params":[],"jsonrpc":"2.0"})
print(resp.json())
{
  "id": 1,
  "result": {
    "feature-set": 3718597879,
    "solana-core": "3.0.6"
  },
  "jsonrpc": "2.0"
}

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet, devnet, testnet.
  3. Credit cost: 1 per call.

FAQ

What does getVersion do?
Returns the version of the Solana software running on the node serving your request.
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.