How many base units (wei, gwei, USDC units) is this token amount, exactly?
How many base units (wei, gwei, USDC units) is this token amount, exactly? Token unit converter: Turns a token amount into its smallest on-chain units, or back, exactly, so an agent never sends the wrong amount because of rounding. $0.001 per call in USDC, charged only on a 2xx answer. Try it free: https://forge.fizzl.eu/try/token-units. Signed receipt. Own this tool for $1.00 and earn from every call: https://forge.fizzl.eu/forge/packages/token-units.
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://forge.fizzl.eu/p/token-units
| Category | Market data |
|---|---|
| Provider host | forge.fizzl.eu |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"amount": "1.5",
"decimals": 18,
"direction": "to_base"
},
"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": {
"amount": {
"description": "Amount as a plain digit string with at most one decimal point (e.g. 1.5 or 1500000000000000000). No sign, no exponent, no separators. For from_base: whole base units only.",
"maxLength": 100,
"type": "string"
},
"decimals": {
"description": "The token's decimals (18 for ether/wei, 6 for USDC, 0 for whole units).",
"maximum": 36,
"minimum": 0,
"type": "integer"
},
"direction": {
"description": "to_base: decimal amount -> integer base units. from_base: integer base units -> decimal amount.",
"enum": [
"to_base",
"from_base"
],
"type": "string"
}
},
"required": [
"amount",
"decimals",
"direction"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}