Docs

eth_getStorageAt

Retrieves the value stored at a specific position in the storage of a contract.

Example

import { getRpcClient, eth_getStorageAt } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const storageValue = await eth_getStorageAt(rpcRequest, {
address: "0x...",
position: 0n,
});

Parameters

Returns

A promise that resolves to the value stored at the specified position.