state_getStorageAt

Retrieves the storage for a key.

Alias: state_getStorage

Example Request and Result for state_getStorageAt method

In this section, we provide an illustrative example of a request made to retrieve details contents using the state_getStorageAt method. Additionally, we present the resulting response containing information about receiving the storage for a key.

Parameters

FieldsTypeDescription

blockhash

string

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

storageKey*

string

The key for which you want to retrieve the storage data

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 storage for a key.

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

Request Body

NameTypeDescription

key*

string

0x06de3d8a54d27e44a9d5ce189618f22d4e7b9012096b41c4eb3aaf947f6ea429

{
    "jsonrpc": "2.0",
    "result": null,
    "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_getStorageAt",
    "params":
    {
        "key": "0x06de3d8a54d27e44a9d5ce189618f22d4e7b9012096b41c4eb3aaf947f6ea429"
    }
}'

Last updated