get_token_balance
Retrieve the ERC-20 or SPL token balance for a wallet on a specified chain, returning both raw and human-readable amounts for on-chain verification.
Instructions
Get the ERC-20 or SPL token balance for a wallet on a specific chain. Returns the raw balance and human-readable balance. Use get_chains to find stablecoin addresses for each chain.
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_id": "<wallet_id>",
"token": "<token>",
"chain_id": "<chain_id>"
},
"name": "get_token_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token address (0x-prefixed ERC-20 contract for EVM, Base58 mint for Solana) | |
| chain_id | Yes | Chain ID to check on | |
| decimals | No | Token decimals. Taken from the response or the token contract when omitted | |
| wallet_id | Yes | Wallet ID to check |