TriportRPC

eth_getStorageAt

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

eth_getStorageAt reads a single 32-byte word directly out of a contract's storage trie on Polygon. Every smart contract has a flat key→value storage space indexed by 256-bit slot numbers; this method returns the raw value at one slot, exactly as the EVM sees it, as a 0x-prefixed 32-byte hex string.

Use it to inspect contract state that no public getter exposes — for example, detecting and reading a proxy's implementation slot (EIP-1967), reading a token's packed balance/total state, or any internal variable once you have computed its slot. By varying the third parameter (the block tag) you can read the slot as of the latest block, a pending block, or any historical block height.

You are responsible for knowing the storage layout of the contract you query. Solidity assigns simple state variables to sequential slots starting at 0, while mapping and dynamic-array entries live at slots derived with keccak256. The method does no decoding: a slot that has never been written returns all-zeroes (0x0000…0000).

Parameters

This method takes no parameters.

Returns

eth_getStorageAt return value
FieldType
resultobject

Examples

curl https://triport.io/polygon \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":[]}'
const res = await fetch("https://triport.io/polygon", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getStorageAt",
  "params": []
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/polygon",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":[]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Polygon.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_getStorageAt do?
Returns the raw 32-byte value stored at a given storage slot of a contract on Polygon, at a specific block.
How many credits does eth_getStorageAt cost?
eth_getStorageAt costs 1 credit(s) per call on Triport by default.
Is eth_getStorageAt available over WebSocket?
eth_getStorageAt is an HTTP JSON-RPC method.