402.com.tr/api/x402/swap-route
Give a token and a trade size in USD → the deepest Base pool to route through, estimated price impact, a suggested slippage tolerance + minimum-out, all gated on a honeypot/sell-tax check of the token you'd receive (no point routing into something you can't sell). Moves an agent from analysis to action in one call.
GET
https://402.com.tr/api/x402/swap-routeUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://402.com.tr/api/x402/swap-route?amountUsd=100&tokenOut=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed");
console.log(await res.json());Example input
{
"amountUsd": "100",
"tokenOut": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed"
}