Non-custodial swap calldata for Base
payai.agentstools.dev/swap/quote
Non-custodial swap calldata for Base: give tokenIn, tokenOut, raw amountIn, slippage and recipient; we read Aerodrome and Uniswap V3 on-chain state, pick the max-output route, and return ready-to-sign transaction calldata plus the ERC-20 approval, amountOutMin, price impact and the venues compared. You sign with your own wallet — we never hold or move funds.
GET
https://payai.agentstools.dev/swap/quoteUptime100% of 4 checks in 30 days
30 days agoToday
Call it from an agent
curl -i "https://payai.agentstools.dev/swap/quote?tokenIn=WETH&amountIn=1000000000000000000&tokenOut=USDC&recipient=0x1111111111111111111111111111111111111111&slippageBps=50" # 402 Payment Required comes back with the price and where to pay. # Any x402 client pays and retries.
Example input
{
"tokenIn": "WETH",
"amountIn": "1000000000000000000",
"tokenOut": "USDC",
"recipient": "0x1111111111111111111111111111111111111111",
"slippageBps": 50
}