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

> **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`).

## Endpoint

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

## Request

#### cURL

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

#### JavaScript

#### 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);
```

#### Python

#### example.py

```python
import requests

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

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