Skip to main content

state_getRuntimeVersion

Returns the runtime version on Asset Hub.

Use Cases#

  • Version checking - Verify runtime compatibility
  • Upgrade detection - Monitor for runtime upgrades on native stablecoin transfers (USDC, USDT), DOT staking and governance, and cross-chain asset management via XCM
  • Client compatibility - Ensure API compatibility

Parameters#

ParameterTypeRequiredDescription
blockHashStringNoBlock hash for historical version

Request#

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

Code Examples#

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": "state_getRuntimeVersion",
"params": [],
"id": 1
}'