Uniswap V2 Swap Output Calculator is a paid API for AI agents from golf-evm-math.x402-evm-math.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).
Computes exact integer swap output amount, price impact, and post-swap reserves for a Uniswap-V2 style constant-product AMM trade.
Exact EVM address, calldata, Uniswap V2/V3 and impermanent-loss math. Pay per call in USDC on Base via x402.
Returns an exact integer amount_out (in base units) representing the tokens received, along with the price impact as a percentage and the updated reserve balances after the hypothetical swap — all computed using integer arithmetic consistent with Uniswap V2 smart contract logic.
GEThttps://golf-evm-math.x402-evm-math.workers.dev/defi/v2-swap?utm_source=zero.xyzChoose this endpoint when you need bit-accurate, integer-safe Uniswap V2 swap math without running a local simulation or calling an RPC node. It is ideal for bots, arbitrage engines, and smart-contract pre-flight checks that require exact on-chain-equivalent arithmetic (not floating-point approximations) for V2-style constant-product AMMs.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"amount_out": "499248..."
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"