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

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

Tempo 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 = "0x20c0000000000000000000000000000000000000";

  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 = "0x20c0000000000000000000000000000000000000"

  # 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": ["0x20c0000000000000000000000000000000000000", "0x0", "latest"],
      "id": 1
    }'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/tempo_node_api/account_info/eth_getStorageAt.json POST /
openapi: 3.0.0
info:
  title: eth_getStorageAt Tempo example
  version: 1.0.0
  description: This is an API example for eth_getStorageAt for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Account info
      summary: eth_getStorageAt
      operationId: tempo-eth-getStorageAt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getStorageAt
                params:
                  type: array
                  items: {}
                  default:
                    - '0x20c0000000000000000000000000000000000000'
                    - '0x0'
                    - latest
                  description: Address, storage position, and block parameter
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The storage value
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: The value at the given storage position

````