cast_balance
Query an Ethereum address's balance over a specified RPC network and block, returning the amount in wei or ether.
Instructions
Query the ETH balance of an address (cast balance).
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>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ether | No | Display balance in ether instead of wei | |
| rpcUrl | Yes | RPC URL of the network | |
| address | Yes | Address to query the balance of | |
| blockTag | No | Block to query at, e.g. "latest" or a number |