Api Endpoint

x402 Forge

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.

Open interactive test console

Offering

Provider
forge.fizzl.eu
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://forge.fizzl.eu/p/token-units
MIME type
application/json
First seen
2026-11-21T18:43:52.182Z
Last seen
Tags
Crypto, x402-forge, ERC-20, decimals, wei

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x1f6f7a67336F4bC31556475999417def2b311680"
  }
]

Observed health

Status
Healthy
Latest latency
103 ms
Average latency
104 ms
HTTP status
402
Last checked
Reachability
100% over 4 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "string",
          "maxLength": 100,
          "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."
        },
        "decimals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 36,
          "description": "The token's decimals (18 for ether/wei, 6 for USDC, 0 for whole units)."
        },
        "direction": {
          "type": "string",
          "enum": [
            "to_base",
            "from_base"
          ],
          "description": "to_base: decimal amount -> integer base units. from_base: integer base units -> decimal amount."
        }
      },
      "required": [
        "amount",
        "decimals",
        "direction"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET"
          ]
        },
        "queryParams": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "string",
              "maxLength": 100,
              "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."
            },
            "decimals": {
              "type": "integer",
              "minimum": 0,
              "maximum": 36,
              "description": "The token's decimals (18 for ether/wei, 6 for USDC, 0 for whole units)."
            },
            "direction": {
              "type": "string",
              "enum": [
                "to_base",
                "from_base"
              ],
              "description": "to_base: decimal amount -> integer base units. from_base: integer base units -> decimal amount."
            }
          },
          "required": [
            "amount",
            "decimals",
            "direction"
          ]
        }
      },
      "required": [
        "type",
        "method"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "input"
  ]
}