X

x402-solvers · Cycles Probe

by x402-solvers

POSTBase

$0.001

per call · USD Coin on Base

Detect whether an arbitrage opportunity exists in a set of token exchange rates (multi-pool negative-cycle scan). Cheap boolean + magnitude signal for trading agents. POST a swap-rate graph, get back whether a profitable cycle exists and how large — without the path.

Endpoint

POST https://x402-solvers.onrender.com/v1/cycles/probe

3

Calls / 30d

2

Unique payers / 30d

Sep 1

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://x402-solvers.onrender.com/v1/cycles/probe", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "edges": [
      {
        "dex": "aerodrome",
        "fee": 0.0005,
        "from": "USDC",
        "rate": 0.00031,
        "to": "WETH"
      },
      {
        "dex": "uniswap",
        "fee": 0.0005,
        "from": "WETH",
        "rate": 3300,
        "to": "USDC"
      }
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402-solvers.onrender.com/v1/cycles/probe" \
  -H "Content-Type: application/json" \
  -d '{"edges":[{"dex":"aerodrome","fee":0.0005,"from":"USDC","rate":0.00031,"to":"WETH"},{"dex":"uniswap","fee":0.0005,"from":"WETH","rate":3300,"to":"USDC"}]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "edgesEvaluated": 3,
  "hasArbitrage": true,
  "hops": 3,
  "nodesEvaluated": 3,
  "profitBucket": ">2%",
  "tier": "probe"
}

Payment details

Pay to0xa238af2e66d9d7301f2d02932931851ddf900dcd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from x402-solvers & similar services