Skip to content
onelayer.
All tools

Tool detail

x402-solvers

Detects whether a profitable arbitrage cycle exists in a supplied token swap-rate graph and returns its magnitude, without the path.

Categories: Trading signals

Use when

  • check if a set of swap rates contains an arbitrage cycle
  • get a cheap boolean arbitrage signal before computing the full path

Not for

  • not the exact arbitrage path - use /v1/cycles/report for that
  • not live on-chain rates - caller must supply the observed rates

Inputs

POST JSON body: { edges: array of 1-100 items { from: string, to: string, rate: number } (dex, fee, pool optional) } (required)

Admitted input schema

{
  "type": "object",
  "properties": {
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dex": {
            "type": "string",
            "minLength": 0,
            "maxLength": 4096,
            "description": "Venue label; echoed back untouched."
          },
          "fee": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Fractional swap fee, e.g. 0.003 for 0.30%. Defaults to 0."
          },
          "from": {
            "type": "string",
            "minLength": 0,
            "maxLength": 4096,
            "description": "Source token symbol."
          },
          "pool": {
            "type": "string",
            "minLength": 0,
            "maxLength": 4096,
            "description": "Pool address; echoed back untouched."
          },
          "rate": {
            "type": "number",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Units of `to` per 1 unit of `from`, BEFORE fees."
          },
          "to": {
            "type": "string",
            "minLength": 0,
            "maxLength": 4096,
            "description": "Destination token symbol."
          }
        },
        "required": [
          "from",
          "to",
          "rate"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 100,
      "description": "Directed exchange-rate edges describing a token swap graph. Supply the rates you observed; the server makes no RPC calls of its own."
    }
  },
  "required": [
    "edges"
  ],
  "additionalProperties": false
}

Endpoint

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

Payment

Protocol
x402
Listed price
0.001 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://x402-solvers.onrender.com/v1/cycles/probe
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z