token_balance
token_balanceRetrieve a wallet's token balance on Ethereum, Solana, or Base in one paid RPC402 call, returning raw balance, decimals, symbol, and formatted amount.
Instructions
Balance of one token for one wallet, composed in a single RPC402 call ($0.002 USDC via x402): ERC-20 balanceOf+decimals+symbol (EVM) or SPL token-account sum + mint decimals (Solana). Returns balance (raw integer string), decimals, symbol (null on Solana), formatted.
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": {
"chain": "<chain>",
"wallet": "<wallet>",
"token": "<token>"
},
"name": "token_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain to READ (settlement network is separate, configured by env) | |
| token | Yes | Token contract (EVM) or mint (Solana) address | |
| wallet | Yes | Wallet address: 0x… (EVM) or base58 (solana) |