Example inputPOST /api/v1/x402/usdc-raw-to-amount
{
"raw": "1500000"
}
Portable intent card · chain-primitives-local
Convert 6-decimal USDC raw units into human USDC amounts. Call when displaying USDC balances or payment receipts stored as raw integers. Returns USDC amount with decimals=6 as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/usdc-raw-to-amount -m POST -H 'x-delx-source: intent-card-usdc-raw-to-amount-api' --max-amount 0.001 -b '{"raw":"1500000"}'
{
"raw": "1500000"
}
{
"intent": "USDC Raw to Amount for an agent workflow",
"tool_name": "util_usdc_raw_to_amount",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/usdc-raw-to-amount-api.json"
}
Portable and inspectable