Skip to main content

state_getRuntimeVersion

Retrieves the runtime version

Example Request and Result for state_getRuntimeVersion method

In this section, we provide an illustrative example of a request made to retrieve details contents using the state_getRuntimeVersion method. Additionally, we present the resulting response containing information about the runtime version.

Parameters

FieldsTypeDescription
blockhashstring

The hash of a specific block in the chain. If not provided, the request will return the runtime version from the latest block.

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.

POST https://vara-mainnet.blastapi.io/<project-id>

Request Body

NameTypeDescription
blockhashstring0xe0ee3872c50b4d0d8ca568679beb7e9e29e6d2caa30a52085c0a34b3a137e734
{
"jsonrpc": "2.0",
"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
},
"id": 1
}

Curl Request example

curl --location 'https://vara-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "state_getRuntimeVersion",
"params": []
}'