system_version - Kusama
Example code for the system_version JSON-RPC method. Complete guide on how to use system_version JSON-RPC in GetBlock Web3 documentation.
Returns the version string of the node client implementation.
Parameters
Request
curl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": "getblock.io",
"method": "system_version",
"params": []
}'const axios = require('axios');
const response = await axios.post('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/', {
jsonrpc: '2.0',
id: 'getblock.io',
method: 'system_version',
params: []
}, { headers: { 'Content-Type': 'application/json' } });
console.log(response.data.result);import requests
response = requests.post(
'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/',
headers={'Content-Type': 'application/json'},
json={
'jsonrpc': '2.0',
'id': 'getblock.io',
'method': 'system_version',
'params': []
}
)
print(response.json())Response
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "1.16.2-9c1e..."
}Response Fields
Field
Type
Description
result
string
Client version string
Use Cases
Version Tracking: Report the node software version
Upgrade Coordination: Confirm a fleet is on the expected version
Diagnostics: Attach version to issue reports
Error Handling
Error
Message
Description
-32603 / Internal error
Internal error
The node failed to return the version
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Last updated
Was this helpful?