cast_balance
Retrieve the ETH balance of any address on zkSync by providing the address and network RPC URL, with optional block tag and ether formatting.
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 |
|---|---|---|---|
| address | Yes | Address to query the balance of | |
| rpcUrl | Yes | RPC URL of the network | |
| blockTag | No | Block to query at, e.g. "latest", "pending", or a block number | |
| ether | No | If true, format the output in ether instead of wei |