cast_rpc
Send a raw JSON-RPC request to any network when a specific RPC method isn't covered by other tools, enabling custom on-chain queries.
Instructions
Send a raw JSON-RPC request (cast rpc). Escape hatch for any RPC method not covered by other tools.
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": {
"method": "<method>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_rpc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | JSON-RPC method name, e.g. eth_getBlockByNumber | |
| params | No | Method parameters as strings | |
| rpcUrl | Yes | RPC URL of the network |