Skip to main content

state_getRuntimeVersion RPC method

Retrieves the runtime version.


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


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

Code Examples

curl<API-KEY> \
-H "Content-Type: application/json" \
--data '{"method":"state_getRuntimeVersion","params":[],"id":1,"jsonrpc":"2.0"}'