Skip to content
Fourohtwo

saylorinnovations.com/api/defi/swap-quote

Compare Paraswap and KyberSwap quotes for an EVM token swap on 7 chains - output amount, USD value, gas, best aggregator and advantage in basis points

BaseAnswering
GEThttps://saylorinnovations.com/api/defi/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://saylorinnovations.com/api/defi/swap-quote?to=USDC&from=ETH&chain=ethereum&amount=1");
console.log(await res.json());

Example input

{
  "to": "USDC",
  "from": "ETH",
  "chain": "ethereum",
  "amount": "1"
}

More from Saylor Innovations Data DeskProvider status