DELXCOMMERCE Live contract

Local chain primitives · chain-primitives-local

Token Raw to Human Amount

Scale raw token units by decimals into human-readable amounts. Call when rendering balances or logs that store raw integer token units. Returns human amount plus raw and decimals 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.

x402agentslocal-firstmicro-usdcpay-per-callcryptochain-primitives-local

One-command purchase

Run it from an agent.

No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/token-raw-to-amount -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"raw":"1250000","decimals":6}'
InputPOST /api/v1/x402/token-raw-to-amount
{
  "raw": "1250000",
  "decimals": 6
}
Delivered resultapplication/json
{
  "schema": "delx/util-token-raw-to-amount/v1",
  "raw": "1250000",
  "decimals": 6,
  "amount": 1.25
}

Machine-readable evidence

Inspect before paying.