x402
utility

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.

post/api/v1/x402/amm-out-given-in

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/amm-out-given-in
  • Auth: none declared

Request body

reserve_ininteger required

Input field: reserve in.

reserve_outinteger required

Input field: reserve out.

amount_ininteger required

Input field: amount in.

fee_bpsinteger required

Input field: fee bps.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
amount_innumber
amount_outnumber
fee_bpsnumber

Changes

No recorded changes to this operation across all 1 revision of this API.