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

# eth_getStorageAt | Monad

> Monad API method that returns the value from a storage position at a given address. Available on Monad via Chainstack JSON-RPC nodes.

Monad API method that returns the value from a storage position at a given address. This method allows you to read the raw storage of smart contracts, which is useful for debugging and analyzing contract state.

> [!NOTE]
>
> When called against a block older than the latest \~128 blocks, this method is treated as an archive request (2 RUs instead of 1 RU). See [request units](https://docs.chainstack.com/docs/request-units.md#evm-methods-affected-by-block-age).

> [!NOTE]
>
> Monad nodes, including Archive nodes, keep state only for a rolling window of recent blocks, several days long. For a block older than that window, this method returns `-32602` `Block requested not found`. See the Monad note on [Networks](https://docs.chainstack.com/docs/protocols-networks.md).

## Parameters

* `data` — the 20-byte address of the storage.
* `quantity` — the position in the storage as a hexadecimal string.
* `quantity|tag` — the block number as a hexadecimal string, or one of the following block tags:
  * `latest` — the most recent block in the canonical chain
  * `earliest` — the genesis block
  * `pending` — the pending state/transactions

## Response

* `result` — the value at this storage position, encoded as a 32-byte hexadecimal string.

## `eth_getStorageAt` code examples

```javascript ethers.js theme={"system"}
const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

async function getStorageAt() {
  const contractAddress = "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A";
  const position = "0x0"; // Storage slot 0
  const value = await provider.getStorage(contractAddress, position);
  console.log(`Storage value at position 0: ${value}`);
}

getStorageAt();
```

```python web3.py theme={"system"}
from web3 import Web3

node_url = "CHAINSTACK_NODE_URL"

web3 = Web3(Web3.HTTPProvider(node_url))
contract_address = "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"
value = web3.eth.get_storage_at(contract_address, 0)
print(f'Storage value at position 0: {value.to_0x_hex()}')
```

## Use case

A practical use case for `eth_getStorageAt` is reading private or internal state variables from smart contracts that are not exposed through public getter functions, or verifying that a contract's storage layout matches expected values during audits.


## OpenAPI

````yaml openapi/monad_node_api/accounts_info/eth_getStorageAt.json POST /
openapi: 3.0.0
info:
  title: Monad Node API
  version: 1.0.0
  description: This is an API for interacting with a Monad node.
servers:
  - url: https://monad-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e
security: []
paths:
  /:
    post:
      tags:
        - Accounts info
      summary: eth_getStorageAt
      operationId: eth_getStorageAt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getStorageAt
                params:
                  type: array
                  items:
                    type: string
                  default:
                    - '0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A'
                    - '0x0'
                    - latest
      responses:
        '200':
          description: The value at the storage position.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````