For the complete documentation index, see llms.txt. This page is also available as Markdown.

/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.

On GetBlock's unified endpoint, Asset Hub is the default network. To call this endpoint against the Relaychain, add an /rc prefix to the path (for example, /rc/node/version).

Endpoint

GET /node/version

Request

curl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version'
example.js
const response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version');
const data = await response.json();
console.log(data);
example.py
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?