Exact conversion between wei, gwei, ether or any token decimals
evm_unitsExact conversion between wei, gwei, ether or any token decimals. Converts an amount between wei / gwei / ether (or any decimals 0-36, e.g. 6 for USDC) with exact integer arithmetic (no floating-point rounding), and refuses conversions that would drop digits. Price: $0.003 USDC per call via x402 (eip155:8453).
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": "evm_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | wei | |
| from | No | wei, gwei, ether, or a number of decimals | ether |
| value | Yes |