cast_storage
Reads a raw storage slot from a contract using an RPC URL and optional block tag, letting you inspect on-chain state without needing source code.
Instructions
Read a raw storage slot of a contract (cast storage).
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>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Storage slot to read (hex or decimal) | |
| rpcUrl | Yes | RPC URL of the network | |
| address | Yes | Address of the contract | |
| blockTag | No | Block to query at, e.g. "latest" or a number |