> For the complete documentation index, see [llms.txt](https://docs.getblock.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getblock.io/api-reference/polkadot-dot/substrate-api-sidecar-assethub-+-relaychain/node_version.md).

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

{% hint style="info" %}
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`).
{% endhint %}

## Endpoint

```http
GET /node/version
```

## Request

{% tabs %}
{% tab title="cURL" %}
{% code overflow="wrap" %}

```bash
curl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version'
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code title="example.js" %}

```javascript
const response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version');
const data = await response.json();
console.log(data);
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code title="example.py" %}

```python
import requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/version')
print(response.json())
```

{% endcode %}
{% endtab %}
{% endtabs %}

## Response

```json
{
  "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
