Skip to main content

state_getRuntimeVersion RPC Method

Retrieves the runtime version.

Updated on
Oct 4, 2023

state_getRuntimeVersion RPC Method

Parameters

BlockHash
string
The hash of a specific block in the chain. If not provided, the request will return the runtime version from the latest block

Returns

specName
string
The name of the specification or the runtime specification used in the Polkadot network
implName
string
The name of the implementation used for the Polkadot runtime
authoringVersion
integer
The authoring version, which is a version identifier used during block authoring
specVersion
integer
The version of the runtime specification
implVersion
integer
The version of the implementation of the Polkadot runtime
apis
array
The supported APIs or interfaces exposed by the runtime
transactionVersion
integer
The transaction version used in the runtime
stateVersion
integer
The state version of the Polkadot runtime
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"state_getRuntimeVersion","params":[],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free