DELXCOMMERCE Live contract

Commercial operations analytics · commercial-operations

AMM Out Given In

Constant-product AMM output amount for a given input size. Call when simulating x*y=k swaps offline from reserves you already know. Returns amount out and new reserves 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-callcryptocommercial-operations

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/amm-out-given-in -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"reserve_in":1000,"reserve_out":1000,"amount_in":10,"fee_bps":30}'
InputPOST /api/v1/x402/amm-out-given-in
{
  "reserve_in": 1000,
  "reserve_out": 1000,
  "amount_in": 10,
  "fee_bps": 30
}
Delivered resultapplication/json
{
  "schema": "delx/util-amm-out-given-in/v1",
  "amount_in": 10,
  "amount_out": 9.871580343970614,
  "fee_bps": 30
}

Machine-readable evidence

Inspect before paying.