⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

system_version

Description

Returns the full software version string reported by the connected node. Combine this with runtime metadata to ensure nodes are upgraded before pushing runtime-dependent features.

Parameters

This method does not require any parameters.

Returns

TypeDescription
stringNode version string (implementation dependent)

Request Example

{
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1
}

Response Example

{
"jsonrpc": "2.0",
"result": "5.46.0-8c0b05fffcc",
"id": 1
}

Code Examples

cURL

curl https://api-astar.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1
}'

JavaScript (polkadot.js)

const api = await ApiPromise.create({ provider: new WsProvider('wss://api-astar.n.dwellir.com/YOUR_API_KEY') });
const version = await api.rpc.system.version();
console.log('Node version', version.toString());

Python (requests)

import requests
import json

payload = {"jsonrpc": "2.0", "method": "system_version", "params": [], "id": 1}
resp = requests.post(
"https://api-astar.n.dwellir.com/YOUR_API_KEY",
headers={"Content-Type": "application/json"},
data=json.dumps(payload)
)
print(resp.json()["result"])