Updated on 2024-11-14 GMT+08:00

eth_getStorageAt

Introduction

This API returns the value from a storage position at a given address. It consumes 23 CUs.

Parameter Description

Parameter

Type

Description

Address

String

A 20-byte string of the storage address.

Storage position

String

A hexadecimal code of the position in the storage.

Block number

String

A hexadecimal block number, or the string (earliest, latest, or pending).

Return Value

It returns the value at this storage position.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getStorageAt","params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"],"id":1}'