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

> Arc API method that returns the value from a storage position at a given address. This is useful for reading raw contract storage slots.

Arc API method that returns the value from a storage position at a given address. This is useful for reading raw contract storage slots.

## Parameters

* `address` — the address of the contract
* `storagePosition` — the position in storage (hex)
* `blockParameter` — the block number (hex) or tag (`latest`, `earliest`, `pending`)

## Response

* `result` — the value at the storage position encoded as hexadecimal

## `eth_getStorageAt` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const ethers = require('ethers');
  const NODE_URL = "CHAINSTACK_NODE_URL";
  const provider = new ethers.JsonRpcProvider(NODE_URL);

  // pathUSD token address
  const PATHUSD = "0x7798f2eb73c1dd8fa8086d780d5cf114a10f528e";

  const getStorage = async () => {
      // Slot 0 typically contains the total supply in ERC20 contracts
      const value = await provider.getStorage(PATHUSD, 0);
      console.log(`Storage slot 0: ${value}`);

      // Read a specific slot
      const slot5 = await provider.send("eth_getStorageAt", [
        PATHUSD,
        "0x5",
        "latest"
      ]);
      console.log(`Storage slot 5: ${slot5}`);
    };

  getStorage();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  # pathUSD token address
  PATHUSD = "0x7798f2eb73c1dd8fa8086d780d5cf114a10f528e"

  # Read storage slot 0
  value = web3.eth.get_storage_at(PATHUSD, 0)
  print(f"Storage slot 0: {value.hex()}")

  # Read a specific slot using raw RPC
  result = web3.provider.make_request("eth_getStorageAt", [
      PATHUSD,
      "0x5",
      "latest"
  ])
  print(f"Storage slot 5: {result['result']}")
  ```

  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "method": "eth_getStorageAt",
      "params": ["0x7798f2eb73c1dd8fa8086d780d5cf114a10f528e", "0x0", "latest"],
      "id": 1
    }'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/arc_node_api/accounts_info/eth_getStorageAt.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      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
                  default:
                    - '0x7798f2eb73c1dd8fa8086d780d5cf114a10f528e'
                    - '0x0'
                    - latest
      responses:
        '200':
          description: Returns the result of eth_getStorageAt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result: >-
                  0x0000000000000000000000000a3111263a39fa77d1a931a2aeb028314b73fb7e

````