JSON-RPCMethods

eth_getStorageAt: parameters, returns and CU

Return the raw value stored at a given storage slot of an address.

Summary

Return the raw value stored at a given storage slot of an address.

Compute units (CU) and pricing

CU per call

10 CU

Price per 1M calls (USD)

$1.00

Parameters

ParameterTypeDescription
addressADDRESSContract address.
positionQUANTITYStorage slot position as a 0x-prefixed hexadecimal quantity; this is the raw EVM slot, not the order in which Solidity variables are declared.
blockParameterQUANTITY|TAGBlock number or tag: latest or pending; safe, finalized and earliest return -32011 (not billed).

Returns

  • Type: DATA
  • Description: The 32-byte value at that slot, as 0x-prefixed hex.

Notes

To read a specific variable, compute the slot from Solidity's storage layout, including mappings, dynamic arrays and packing rules.

Request example

export BLOCKVECTRA_API_KEY=rgw_your_api_key

curl -X POST "https://api.blockvectra.com/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H "x-api-key: $BLOCKVECTRA_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getStorageAt",
    "params": [
      "0x0000000000000000000000000000000000000000",
      "0x0",
      "latest"
    ],
    "id": 1
  }'

Supported chains

Available on all 29 supported chains.

Last updated: