unit convert
unit_convertExact crypto unit conversion with no floating-point errors: wei / gwei / ether, lamports / SOL, sats / BTC, USDC base units, or any token decimals (from=units&decimals=8). Returns the base integer and hex too. Costs $0.002 USDC per call (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>"
},
"name": "unit_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| value | Yes | ||
| decimals | No |