Skip to content
Fourohtwo

relay.straelo.com/defi-route-decision

Compare read-only Base swap quotes obtained from 1inch and KyberSwap, evaluating output, minimum output, fees/gas, price impact, consensus, and divergence to return a deterministic economic route decision (EXECUTE_BEST, WAIT, or INSUFFICIENT_DATA). The product consults external providers during the request; quotes reflect the market state observed at that moment and identical calls can produce dif

BaseAnswering
POSThttps://relay.straelo.com/defi-route-decision

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://relay.straelo.com/defi-route-decision", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount_in":"0.1","chain":"base","slippage_bps":50,"token_in":"WETH","token_out":"USDC"}),
});
console.log(await res.json());

Example input

{
  "amount_in": "0.1",
  "chain": "base",
  "slippage_bps": 50,
  "token_in": "WETH",
  "token_out": "USDC"
}

More from Straelo RelayProvider status