Skip to content
Fourohtwo

Simulate a swap on Base with a real KyberSwap aggregator quote

defi-intel-agent-gateway.gg-neo15.workers.dev/v1/dex/pre-swap-simulation

Simulate a swap on Base with a real KyberSwap aggregator quote: expected output, price impact, fees, gas. DO NOT execute the swap. Returns a go/no-go recommendation. — $0.03 USDC/call on eip155:8453. Pay-per-call via x402 — no API key, no account. Free samples daily.

BaseDown
POSThttps://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/dex/pre-swap-simulation

Uptime0.0% 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/dex/pre-swap-simulation", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}

More from DeFi Intel Agent Gateway