system_version
Returns the node implementation version on Asset Hub.
Parameters#
This method accepts no parameters.
Request#
{
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1
}
Code Examples#
- cURL
- JavaScript
curl https://api-asset-hub-polkadot.n.dwellir.com/<YOUR_API_KEY>/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1
}'
import { ApiPromise, WsProvider } from '@polkadot/api';
const provider = new WsProvider('wss://api-asset-hub-polkadot.n.dwellir.com/YOUR_API_KEY');
const api = await ApiPromise.create({ provider });
const version = await api.rpc.system.version();
console.log('Version:', version.toString());
await api.disconnect();
Related Methods#
system_chain- Get chain namestate_getRuntimeVersion- Get runtime version