Skip to main content

state_subscribeRuntimeVersion RPC method

Retrieves the runtime version via subscription.

Parameters

subscription string

Allows the client to manage the subscription. If provided, the client can use this subscription identifier to unsubscribe from receiving updates later

Returns

specName string

The name of the specification associated with the runtime version

implName string

The name of the implementation associated with the runtime version

authoringVersion integer

The authoring version of the runtime

specVersion integer

The specification version of the runtime

implVersion integer

The implementation version of the runtime

apis array

An array of APIs supported by the runtime

transactionVersion integer

The transaction version of the runtime

stateVersion integer

The state version of the runtime

Code Examples

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