state_subscribeRuntimeVersion
Retrieves the runtime version via subscription.
Example Request and Result for state_subscribeRuntimeVersion method
In this section, we provide an illustrative example of a request made to retrieve details contents using the state_subscribeRuntimeVersion
method. Additionally, we present the resulting response containing information about subscribing to runtime version using WS subscription.
Parameters
- none
info
The example in this section uses a non-existing project id.
Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Retrieves the runtime version via subscription.
POST
wss://vara-mainnet.blastapi.io/<project-id>
- 200: OK Expand for a detailed response example
{
"jsonrpc": "2.0",
"method": "state_runtimeVersion",
"params": {
"subscription": "pLBm7qwdpCUoKiTq",
"result": {
"specName": "vara",
"implName": "vara",
"authoringVersion": 1,
"specVersion": 1110,
"implVersion": 1,
"apis": [
[
"0xcbca25e39f142387",
2
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0x29ca33476f4108aa",
1
],
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xab3c0572291feb8b",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xff8dc88037f26223",
2
]
],
"transactionVersion": 1,
"stateVersion": 1
}
}
}
Curl Request example
wscat -c 'wss://vara-mainnet.blastapi.io/<project-id>'
# wait for connection
messasge:
{
"id": 1,
"jsonrpc": "2.0",
"method": "state_subscribeRuntimeVersion",
"params":[]
}