Skip to content
Fourohtwo

api.chainmarket-api.workers.dev/api/crypto/1inch-pathfinder-quotes

Best swap quote for a token pair on an EVM chain, compared across two public DEX aggregators (KyberSwap and Velora/ParaSwap): amount out, USD values, estimated gas in USD, price impact against the input's USD value and the pools/DEXes used, plus which aggregator gives more. Chains: Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche. Indicative quotes, not executable orders.

BaseSolanaArcPolygonArbitrumWorld Chain+1Answering
GEThttps://api.chainmarket-api.workers.dev/api/crypto/1inch-pathfinder-quotes

Uptime100% of 3 checks 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://api.chainmarket-api.workers.dev/api/crypto/1inch-pathfinder-quotes?amount=1&chain=ethereum&tokenIn=native&tokenOut=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48");
console.log(await res.json());

Example input

{
  "amount": "1",
  "chain": "ethereum",
  "tokenIn": "native",
  "tokenOut": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}

More from SiteCheck Crypto & FinanceProvider status