> ## 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](/docs/request-units#archive-state-methods).
</Note>

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

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { ethers } = require("ethers");

  const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function getStorageAt() {
    const contractAddress = "0xAc586b65F3cd0627D2D05AdB8EF551C9d2D76E12";
    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 = "0xAc586b65F3cd0627D2D05AdB8EF551C9d2D76E12"
  value = web3.eth.get_storage_at(contract_address, 0)
  print(f'Storage value at position 0: {value.hex()}')
  ```
</CodeGroup>

## 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-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800
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:
                    - '0xAc586b65F3cd0627D2D05AdB8EF551C9d2D76E12'
                    - '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

````