eth_getStorageAt
Returns the value from a storage position at a given address.
☝🏽 Address of the storage
☝🏽 Hex of the position in the storage
☝🏽 Hex block number, or the string "latest", "earliest" or "pending"
eth_getStorageAt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const ethers = require("ethers");
// OR import ethers from 'ethers';
// HTTP version
(async () => {
const provider = new ethers.providers.JsonRpcProvider('https://rpc.mantle.xyz/');
const storage = await provider.getStorageAt('0x8362Bf7A5B7ADdeea862a374B60B81f112D27A01', '0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103', 'latest');
console.log(storage);
})();
// WebSocket version
(async () => {
const provider = new ethers.providers.WebSocketProvider('https://rpc.mantle.xyz/');
const storage = await provider.getStorageAt('0x8362Bf7A5B7ADdeea862a374B60B81f112D27A01', '0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103', 'latest');
console.log(storage);
})();
Sponsored by QuikNode
Huge thanks to QuikNode for letting us build EtherFlow with ⚡️ fast nodes.