Skip to main content
Returns the values of several storage slots, for one or more contracts, in a single request. It is the batch form of eth_getStorageAt. This method will use 40 Compute Units.
Linea Mainnet keeps state for the last 512 blocks, about an hour. Requests for an older block return JSON-RPC error -32000 with the message World state unavailable. A request can read at most 1,024 slots in total; more return error -32602 with the message too many slots (max 1024).

Parameters

  1. Object - Required - A map from each contract address to the list of storage slot positions to read, as hexadecimal strings.
  2. QUANTITY|TAG|Object - Required - A block number, the string "latest", "safe" or "finalized", or an object with a blockHash.

Returns

Object - A map from each contract address to an array of 32-byte slot values, in the order the slots were requested. Unset slots return zero.