{"slug":"forge-fizzl-eu-p-token-units-cc21af","title":"How many base units (wei, gwei, USDC units) is this token amount, exactly?","host":"forge.fizzl.eu","method":"GET","resource":"https://forge.fizzl.eu/p/token-units","category":"market","description":"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: ","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"amount":"1.5","decimals":18,"direction":"to_base"},"type":"http"},"output_schema":{"$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"},"history":[],"description_full":"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.","last_updated":"2026-11-18T09:33:08.396Z","schemes":["exact"]}