normalize_token_amount
Convert raw on-chain base units to human-readable token amounts using each token's decimals, returning the amount and decimals and erroring on unsupported tokens.
Instructions
Normalise raw on-chain base units to a human token amount using the token's decimals (USDC/USDT/EURC=6, SOL=9, ETH=18). Returns amount and decimals. Errors on an unsupported token.
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": {
"raw_base_units": "<raw_base_units>",
"token_symbol": "<token_symbol>"
},
"name": "normalize_token_amount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_symbol | Yes | Token symbol, e.g. USDC, ETH, SOL. | |
| raw_base_units | Yes | Raw integer base units (smallest unit). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||