eth_getStorageAt
Returns the value from a storage position at a given address.
Params
Address
:string
. The address of the storage.StorageSlot
:string
. The position in the storage.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...']