x402 Forge BundlesCatalog

Catalog / xrpl-amount-convert

XRPL amount and currency-code converter

Converts XRP to drops and back exactly, and turns XRP Ledger currency codes into their 160-bit hex form and back, flagging codes that look like XRP.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

Offline, exact XRP Ledger conversions. Give exactly one of: xrp (decimal XRP, max 6 decimals, max 100,000,000,000) -> drops string; drops (whole number, max 10^17) -> XRP decimal string; currency (3-character standard code or 40-hex 160-bit code) -> format, code, uppercase hex, ASCII text and an XRP-lookalike flag. Negatives, exponents, commas and amounts above the XRP supply come back valid: false with a machine-readable reason.

Example input
{"xrp":"3.456789"}
Answer
{"ok":true,"result":{"mode":"xrp_to_drops","valid":true,"reason":null,"drops":"3456789","xrp":"3.456789","format":null,"code":null,"hex":null,"ascii":null,"ascii_hex":null,"is_xrp_lookalike":null,"xrpl_js_display":null,"standard":"XRPL Currency Formats (xrpl.org); xrpl.js xrpToDrops/dropsToXrp and ripple-binary-codec Currency"},"warnings":[]}
Try it free
/try/xrpl-amount-convert

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/xrpl-amount-convert?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/xrpl-amount-convert?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/xrpl-amount-convert?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/xrpl-amount-convert/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.