FortiSwap · Quote

by FortiSwap

POSTBaseSolana

$0.001

per call · USD Coin on Base

Best swap route on X1 across XDEX and Degen pools for exact-in or exact-out, with live-verified reserves, price impact, dynamic slippage, fee disclosure (25 bps taken on-chain by the FortiBlox Router), route legs, alternatives and a quote expiry slot. Amounts are raw base units. Call before /api/tx/build.

Endpoint

POST https://app.fortiblox.com/api/quote

8

Calls / 30d

2

Unique payers / 30d

Aug 22

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://app.fortiblox.com/api/quote", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "amountIn": "1000000",
    "inputMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
    "mode": "exactIn",
    "outputMint": "So11111111111111111111111111111111111111112"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://app.fortiblox.com/api/quote" \
  -H "Content-Type: application/json" \
  -d '{"amountIn":"1000000","inputMint":"B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq","mode":"exactIn","outputMint":"So11111111111111111111111111111111111111112"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x581ab190df2b2932175d987e787acd28a85eaa1c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from FortiSwap & similar services