Skip to main content

state_subscribeRuntimeVersion RPC Method

Retrieves the runtime version via subscription.

Updated on
Oct 4, 2023

state_subscribeRuntimeVersion RPC Method

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
Request
1
wscat -c \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"state_subscribeRuntimeVersion","params":[]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free