Skip to main content

chain_subscribeRuntimeVersion RPC method

Enables clients to subscribe and receive updates regarding changes to the runtime version.

Parameters

subscription string

Allows the client to manage the subscription

Returns

specName string

The name of the specification (runtime) of the blockchain

implName string

The name of the implementation (client) running the blockchain

authoringVersion integer

The authoring version used for block authorship

specVersion integer

The specification version of the runtime

implVersion integer

The implementation version of the runtime

apis array

An array containing the supported APIs by the runtime

transactionVersion integer

The transaction version used for transactions in the blockchain

stateVersion integer

The state version of the runtime, representing the state storage format

Code Examples

wscat -c wss://api-polkadot.dwellir.com/<API-KEY> \
# wait for connection
{"id":1,"jsonrpc":"2.0","method":"chain_subscribeRuntimeVersion","params":[]}