eth_getStorageAt
Retrieve the raw 32-byte value from a specific storage slot of an Ethereum smart contract by providing the contract address and slot index.
Instructions
Read the raw value from a specific storage slot of a contract.
Args:
address (string): Contract address (20-byte hex, e.g., '0x...').
position (string): Storage slot index as hex (e.g., '0x0' for slot 0).
network (string, optional): Ethereum network to query. Defaults to 'mainnet'.
Returns:
32-byte hexadecimal string representing the storage value at the given position.
Examples:
"Read slot 0": { "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "position": "0x0" }
"Read mapping slot": { "address": "0x...", "position": "0x1", "network": "sepolia" }
Errors:
InvalidParams: When address or position format is invalid.
InternalError: When Infura API is unavailable or returns an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The 20-byte storage address. | |
| position | Yes | The integer index of the storage position or a block parameter. | |
| network | No | The Ethereum network to query, e.g., 'mainnet' or 'sepolia'. | mainnet |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable. | json |