Token balance
balanceGet an address's token holdings from an indexed EVM token contract's Transfer events, with a flag indicating full history versus net transfers since indexing began.
Instructions
Token balance of an address, derived from the indexed EVM token contract's Transfer events (IVM view; i128 base units, returned as a decimal string). The result carries complete_history. When true the nest was indexed from its configured start_block with no --backfill (the contract's deployment if start_block is the deployment block, which init sets) and the figure is under balance. When false or null it is only the net of transfers since indexed_from and is returned as net_flow_since_indexed_from with a note: a negative figure is then not an error, and it must not be reported as a 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>"
},
"name": "balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | What the figure is, when it is not a balance. | |
| address | No | The address asked about. | |
| balance | No | The balance, present only when `complete_history` is true. | |
| indexed_from | No | The first block indexed. | |
| complete_history | No | Whether the figure is a balance. | |
| net_flow_since_indexed_from | No | The net of transfers since `indexed_from`, when the history is not complete. |