chain_subscribeRuntimeVersion
Enables clients to subscribe and receive updates regarding changes to the runtime version.
Allows users to sign up to get information about changes made to the runtime version.
Example Request and Result for chain_subscribeRuntimeVersion method
In this section, we provide an illustrative example of a request made to retrieve details contents using the chain_subscribeRuntimeVersion
method. Additionally, we present the resulting response containing information about getting updates regarding changes to the runtime version using WS subscription.
Parameters
Fields | Type | Description |
---|---|---|
subscription | string | Allows the client to manage the subscription |
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!
Enables clients to subscribe and receive updates regarding changes to the runtime version.
POST
wss://vara-mainnet.blastapi.io/<project-id>
Request Body
Name | Type | Description |
---|---|---|
subscription | string | [] |
- 200: OK Expand for a detailed response example
{
"jsonrpc": "2.0",
"method": "state_runtimeVersion",
"params": {
"subscription": "JtpqJnVVaJmrqRrw",
"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": "chain_subscribeRuntimeVersion",
"params": []
}