> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getStorageValues

Returns the values of several storage slots, for one or more contracts, in a single request. It is the batch form of [eth\_getStorageAt](https://docs.validationcloud.io/nodeapi/linea/execution-api/eth_getstorageat.md).

This method will use `40` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

> [!NOTE]
>
> 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`.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: [
  {
    "0x176211869ca2b568f2a7d4ee941e073a821ee1ff": [
      "0x0",
      "0x1",
      "0x2"
    ]
  },
  "0x1f45804"
]
```

## **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.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "0x176211869ca2b568f2a7d4ee941e073a821ee1ff": [
      "0x00000000000000000000000085e54b6659b11b09ece200728bb775332ebcea65",
      "0x000000000000000000000000a537b946f3bab9453f664aaf6876f4a29260a02b",
      "0x000000000000000000000000349570f5dab10ba630fcd4050fbfcdffcda42ba5"
    ]
  }
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.linea.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getStorageValues","params":[{"0x176211869ca2b568f2a7d4ee941e073a821ee1ff":["0x0","0x1","0x2"]},"latest"],"id":1}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.