🟪 Polygon
eth_getStorageAt

Polygon API Documentation


eth_getStorageAt JOSN-RPC Method

The eth_getStorageAt returns the value stored at a specific position in the storage of a contract at a particular block on Polygon. The value returned is in hexadecimal format. The value returned is in hexadecimal format.

Parameters

  • address - String - The address to check for storage.

  • position - String - The integer of the position in storage.

  • blockNumber or Tag - Block number as hexadecimal or Tag (String) "latest", "earliest""pending".

🔌 To use eth_getStorageAt you must be connected to a blockchain node.

Returns

  • Storage value - The value of the storage position at the provided address

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

💡 Confusing?

Ask our experienced blockchain developers in Telegram

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
  • You can use a different supported network by replacing polygon-mainnet
curl https://polygon-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getStorageAt","params": ["0xdAC17F958D2ee523a2206206994597C13D831ec7", "0x0000000000000000000000000000000000000000000000000000000000000000", "latest"],"id":1}'

Body

{
   "jsonrpc": "2.0",
   "id": 1,
   "result":"0x000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828"
}

JSON-RPC Polygon API Documentation by CHAINNODES is based on Erigon node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or reth