/node/version - Polkadot
Example code for the /node/version REST method. Complete guide on how to use /node/version REST in GetBlock Web3 documentation.
This endpoint returns the node's client version, implementation name, and the chain it is connected to.
Endpoint
GET /node/versionRequest
curl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version'const response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version');
const data = await response.json();
console.log(data);import requests
response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version')
print(response.json())Response
{
"clientVersion": "1.15.0-a1b2c3d",
"clientImplName": "parity-polkadot",
"chain": "Polkadot"
}Response Fields
Field
Type
Description
clientVersion
string
Node client version
clientImplName
string
Client implementation name
chain
string
Connected chain name
Use Cases
Diagnostics: Identify the node version and chain
Compatibility: Confirm a supported client release
Monitoring: Track versions across nodes
Support: Include node details in a report
Last updated
Was this helpful?