chain_units
Wei / gwei / ether and token-decimals converter — Exact BigInt conversion of an amount between EVM units (wei, kwei, mwei, gwei, szabo, finney, ether) or token decimals (e.g. decimals=6 for USDC): returns base units (decimal + hex) and every ETH unit. No floating-point rounding; rejects amounts with more decimals than the unit allows. Params: value, from (default ether) or decimals. Price: $0.001 USDC (Base, via x402).
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": {
"value": "<value>",
"from": "<from>"
},
"name": "chain_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ether | |
| value | Yes | 1.5 |