Skip to main content

state_getRuntimeVersion

Returns the runtime version on Kusama.

Use Cases#

  • Version checking - Verify runtime compatibility
  • Upgrade detection - Monitor for runtime upgrades on parachain experimentation, early feature deployment, and production-grade testing with real value
  • 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  \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "state_getRuntimeVersion",
"params": [],
"id": 1
}'