chain_getRuntimeVersion

Retrieve the runtime version id of given block_hash.

Example Request and Result for chain_getRuntimeVersion method

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

Parameters

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!

Retrieve the runtime version id of given block_hash.

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

Request Body

{
    "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 '{
    "jsonrpc": "2.0",
    "method": "chain_getRuntimeVersion",
    "params": ["0xc60ed6e41e2fc08321e85d0efb7177ade2f7a471e62577611e19d74318e2fdd5"],
    "id": 1
}'

Last updated