Skip to content
Fourohtwo

forge.fizzl.eu/p/token-units

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

BaseAnswering
GEThttps://forge.fizzl.eu/p/token-units

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://forge.fizzl.eu/p/token-units?amount=1.5&decimals=18&direction=to_base");
console.log(await res.json());

Example input

{
  "amount": "1.5",
  "decimals": 18,
  "direction": "to_base"
}

More from x402 ForgeProvider status