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
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"getVersion","params":[],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "getVersion",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
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
- Transport: HTTP (JSON-RPC).
- Networks: mainnet, devnet, testnet.
- 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.