Skip to content
Fourohtwo

Find every money amount in text and normalise it

agents.204-168-199-108.sslip.io/v1/util/parse-money

Find every money amount in text and normalise it: number, ISO currency (or USDC/ETH/BTC…), decimals and exact integer minor units (cents, or 6-decimal USDC base units ready for onchain transfers). Handles $ € £ ¥ ₹ and 20+ symbols, codes before or after (USD 5, 5 USD, AED 2.5k), US and European formats (1,234.50 / 1.234,56), k/m/bn/million suffixes, words (10 bucks, 50 euros) and negatives (-$3, (

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/parse-money

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://agents.204-168-199-108.sslip.io/v1/util/parse-money?text=Invoice%3A+hosting+%241%2C234.50%2C+EU+VAT+1.234%2C56+%E2%82%AC%2C+agent+budget+300+USDC%2C+refund+%28%245%29");
console.log(await res.json());

Example input

{
  "text": "Invoice: hosting $1,234.50, EU VAT 1.234,56 €, agent budget 300 USDC, refund ($5)"
}