Skip to main content

eth_getStorageAt

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

Params

  1. Address: string. The address of the storage.
  2. StorageSlot: string. The position in the storage.
  3. BlockNumber: string (optional). The block number to get the storage at. If omitted, the latest block is used.

Result

Returns a Promise that resolves with a string containing the value of the storage at the given address and slot.

Example

const storage = await provider.request({
method: 'eth_getStorageAt',
params: [
'0x...',
'0x...',
'latest'
]
});
console.log(storage); // ['0x...']