Azxa
← Zora overview

Zora · eth

eth_getStorageValues

Returns the values of multiple storage slots for multiple accounts in a single request.

Parameters

  • Requests required
    Schema
    {
      "type": "object",
      "title": "Storage requests"
    }
  • Block

    default: 'latest'

    Schema
    {
      "title": "Block number, tag, or block hash",
      "anyOf": [
        {
          "type": "string",
          "title": "Block number",
          "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
        },
        {
          "type": "string",
          "title": "Block tag",
          "description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
          "enum": [
            "earliest",
            "finalized",
            "safe",
            "latest",
            "pending"
          ]
        },
        {
          "type": "string",
          "title": "Block hash",
          "pattern": "^0x[0-9a-f]{64}$"
        }
      ]
    }

Result

Values

Schema
{
  "type": "object",
  "title": "Storage values"
}

Example request

Endpoint: https://your-zora-node.azxa.io

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getStorageValues",
  "params": [
    {
      "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": [
        "0x0000000000000000000000000000000000000000000000000000000000000003"
      ],
      "0xdAC17F958D2ee523a2206206994597C13D831ec7": [
        "0x0000000000000000000000000000000000000000000000000000000000000002",
        "0x0000000000000000000000000000000000000000000000000000000000000006"
      ]
    },
    "latest"
  ]
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": [
      "0x0000000000000000000000000000000000000000000000000000000000000001"
    ],
    "0xdAC17F958D2ee523a2206206994597C13D831ec7": [
      "0x00000000000000000000000000000000000000000000000000000000000f4240",
      "0x0000000000000000000000000000000000000000000000000000000000000012"
    ]
  }
}

Test fixture

Fixture: get-storage-values-default-block

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getStorageValues",
  "params": [
    {
      "0x7dcd17433742f4c0ca53122ab541d0ba67fc27df": [
        "0x0000000000000000000000000000000000000000000000000000000000000000"
      ]
    }
  ]
}
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "0x7dcd17433742f4c0ca53122ab541d0ba67fc27df": [
      "0x0000000000000000000000000000000000000000000000000000000000000038"
    ]
  }
}

cURL

curl -X POST https://your-zora-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getStorageValues","params":[{"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":["0x0000000000000000000000000000000000000000000000000000000000000003"],"0xdAC17F958D2ee523a2206206994597C13D831ec7":["0x0000000000000000000000000000000000000000000000000000000000000002","0x0000000000000000000000000000000000000000000000000000000000000006"]},"latest"]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background