ETH unit converter
hopi_eth_unit_converterConvert an amount given in wei, gwei or ETH into all three units, using exact 18-decimal integer maths (no floating point error). 1 ETH is 1e18 wei; 1 gwei is 1e9 wei. Source: https://hopi.co.uk/eth-unit-converter/
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": {
"amount": "<amount>",
"unit": "<unit>"
},
"name": "hopi_eth_unit_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | The unit the amount is given in | |
| amount | Yes | The amount to convert, as a plain number (string preferred to keep full precision), e.g. "1.5" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eth | Yes | ||
| wei | Yes | ||
| gwei | Yes | ||
| summary | Yes | ||
| ethPretty | Yes | ||
| weiPretty | Yes | ||
| gweiPretty | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |