81trust / 100
Dex Pair
by Resolve Uniswap V3 pool address in Onchain & crypto
x402 APIPassing, checked 3 h ago
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-pair
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 207 ms typical, 207 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/dex-pair" \
-H "content-type: application/json" \
-d '{"fee":500,"network":"base","tokenA":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","tokenB":"0x4200000000000000000000000000000000000006"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fdex-pair
const res = await pay("https://agent402.tools/api/dex-pair", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"fee":500,"network":"base","tokenA":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","tokenB":"0x4200000000000000000000000000000000000006"}),
});
console.log(await res.json());Example input
{
"fee": 500,
"network": "base",
"tokenA": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"tokenB": "0x4200000000000000000000000000000000000006"
}Example output
{
"fee": 500,
"network": "base",
"poolAddress": "0xd0b53d9277642d899df5c87a3966a349a798f224",
"tokenA": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"tokenB": "0x4200000000000000000000000000000000000006"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 207 ms | $0.001 |