Convert between EVM units (wei, gwei, ether) or arbitrary token decimals
Convert between EVM units (wei, gwei, ether) or arbitrary token decimals. Pass value, from and to as unit names or decimal counts. For gas math, token amount formatting and price math. wei gwei ether, unit conversion, token decimals, format units, parse units Accepts payment on Base or Solana — either network works.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
470 msmedian answer time
$0.01listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://api.x402node.dev/crypto/units
| Category | Market data |
|---|---|
| Provider host | api.x402node.dev |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.01 | 470 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"from": "string",
"to": "string",
"value": "string"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"from": {
"description": "source unit name or decimals (default ether)",
"type": "string"
},
"to": {
"description": "target unit name or decimals (default wei)",
"type": "string"
},
"value": {
"description": "numeric value as a string (required)",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}