Read a contract storage slot
read_storageReads a contract's raw storage slot at a given address and slot, returning the 32-byte word plus decoded uint and address values.
Instructions
Read a raw storage slot via eth_getStorageAt. Returns the 32-byte word plus uint and address interpretations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"slot": "<slot>"
},
"name": "read_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Slot as hex (0x...) or decimal. | |
| block | No | ||
| chain | No | Chain name. One of: ethereum, sepolia, holesky, polygon, polygon-amoy, arbitrum, optimism, base, base-sepolia, bsc, avalanche, gnosis, scroll, linea | ethereum |
| address | Yes | ||
| rpc_url | No | Custom JSON-RPC URL. Overrides `chain`; use for private or unlisted networks. |