get_token_balance
Get the ERC20 token balance of a wallet address and receive it converted to decimal units.
Instructions
Get the balance of an ERC20 token in base units. Convert to decimal units before returning.
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": {
"wallet": "<wallet>",
"tokenAddress": "<tokenAddress>"
},
"name": "get_token_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | The address to get the balance of | |
| chainId | No | Optional EVM chain ID to run this tool on (e.g. 1 for Ethereum, 8453 for Base, 42161 for Arbitrum). Defaults to the active wallet chain. | |
| tokenAddress | Yes | The address of the token to get the balance of |