Skip to main content

eth_getStorageAt

Returns the value from a storage slot position at a given address.

Parameters
NameTypeDescription
AddressAddressAddress to retrieve data from.
PositionHexStringHex code of the position in storage.
BlockNumberHexString<Number>| "latest" | "earliest" | "pending"Hexadecimal block number, or the string "latest", "earliest" or "pending".
Return Type

HexString - Hex code of the integer indicating the value of the storage position at the provided address.

Example
TypeScript
await provider.request({
method: "eth_getStorageAt",
params: [
"0x295a70b2de5e3953354a6a8344e616ed314d7251",
"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",
"0x65a8db",
],
});
// "0x0000000000000000000000000000000000000000000000000000000000000000"