Skip to content
Fourohtwo

Best Jupiter swap route for a Solana token pair and an amount

api.sitecheck-api.workers.dev/api/solana/quote

Best Jupiter swap route for a Solana token pair and an amount: input and output in token units, the minimum received after slippage, price impact, effective price, each route hop and USD values. from and to take a mint address or a symbol such as SOL or USDC; a symbol resolves to the verified token with the highest organic score, and the chosen mint is named. Quote only: nothing is built, signed o

BaseSolanaArcPolygonArbitrumWorld Chain+1Unchecked
GEThttps://api.sitecheck-api.workers.dev/api/solana/quote

UptimeNot checked yet

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://api.sitecheck-api.workers.dev/api/solana/quote?amount=1&from=SOL&to=USDC");
console.log(await res.json());

Example input

{
  "amount": "1",
  "from": "SOL",
  "to": "USDC"
}

More from SiteCheck