agent402.tools/api/dex-pair
Look up the Uniswap V3 pool address for a token pair + fee tier on Ethereum, Base, Polygon, Arbitrum, or Optimism. Pass either order (tokenA/tokenB) - the factory sorts internally. Returns 0x0…0 if no pool has been deployed for that combination yet.
POST
https://agent402.tools/api/dex-pairUptime100% of 2 checks 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://agent402.tools/api/dex-pair", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"fee":500,"tokenA":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","tokenB":"0x4200000000000000000000000000000000000006","network":"base"}),
});
console.log(await res.json());Example input
{
"fee": 500,
"tokenA": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"tokenB": "0x4200000000000000000000000000000000000006",
"network": "base"
}