Skip to content
Fourohtwo

agents.204-168-199-108.sslip.io/v1/crypto/swap-quote

Exact constant-product (x·y=k) swap maths from pool reserves, so a trading agent can check a quote before it signs: exact-input (amount out) or exact-output (amount in needed), mid vs execution price, price impact %, fee paid, total cost vs mid, min_amount_out / max_amount_in for your slippage, and the pool price after the trade. Warns on high impact. Works for Uniswap v2, SushiSwap, PancakeSwap v

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/crypto/swap-quote

Uptime100% 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://agents.204-168-199-108.sslip.io/v1/crypto/swap-quote?amount_in=10&reserve_in=1000&reserve_out=3500000");
console.log(await res.json());

Example input

{
  "amount_in": "10",
  "reserve_in": "1000",
  "reserve_out": "3500000"
}