82trust / 100

Cycles Probe

by x402-solvers in Markets & finance

x402 APIPassing, checked 3 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
250 ms typical, 318 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -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"}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-solvers.onrender.com%2Fv1%2Fcycles%2Fprobe
const res = await pay("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"}]}),
});
console.log(await res.json());

Example input

{
  "edges": [
    {
      "dex": "aerodrome",
      "fee": 0.0005,
      "from": "USDC",
      "rate": 0.00031,
      "to": "WETH"
    },
    {
      "dex": "uniswap",
      "fee": 0.0005,
      "from": "WETH",
      "rate": 3300,
      "to": "USDC"
    }
  ]
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402242 ms$0.001
6 h agoPassed402274 ms$0.001
10 h agoPassed402250 ms$0.001
13 h agoPassed402318 ms$0.001
17 h agoPassed402247 ms$0.001
21 h agoPassed402241 ms$0.001
24 h agoPassed402252 ms$0.001
29 h agoPassed402238 ms$0.001
32 h agoPassed402281 ms$0.001
35 h agoPassed402245 ms$0.001
40 h agoPassed402366 ms$0.001