Skip to content
Fourohtwo

Lightweight swap quote for Base without calldata

payai.agentstools.dev/swap/price

Lightweight swap quote for Base without calldata: give tokenIn, tokenOut and raw amountIn and get the max-output route across Aerodrome and Uniswap V3, the buy amount, amountOutMin, price impact and the venues compared. A cheap price check before you build the full transaction.

SolanaUnchecked
GEThttps://payai.agentstools.dev/swap/price

UptimeNot checked yet

30 days agoToday

Call it from an agent

curl -i "https://payai.agentstools.dev/swap/price?tokenIn=WETH&amountIn=1000000000000000000&tokenOut=USDC&slippageBps=50"

# 402 Payment Required comes back with the price and where to pay.

Example input

{
  "tokenIn": "WETH",
  "amountIn": "1000000000000000000",
  "tokenOut": "USDC",
  "slippageBps": 50
}