{
  "x402Version": 2,
  "id": 7854,
  "slug": "7854",
  "resource": "https://app.fortiblox.com/api/quote",
  "description": "Best swap route on X1 across XDEX and Degen pools for exact-in or exact-out, with live-verified reserves, price impact, dynamic slippage, fee disclosure (25 bps taken on-chain by the FortiBlox Router), route legs, alternatives and a quote expiry slot. Amounts are raw base units. Call before /api/tx/build.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EeWEeLTF7SCp4u3ttxWPjN169wdoZsKqbiszVcJY8NMG",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x581aB190DF2B2932175d987E787Acd28A85eAA1C",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "amountIn": "1000000",
            "inputMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
            "mode": "exactIn",
            "outputMint": "So11111111111111111111111111111111111111112"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "alternatives": [
              {
                "amountIn": "1000000",
                "amountOut": "2003332716",
                "guard": {
                  "hardExcluded": false,
                  "maxPriceDeviationPct": 1.04741094,
                  "minPoolTvlXnt": 586.8,
                  "penaltyBps": 50,
                  "thin": false,
                  "worstTradeReservePct": 0.68942644
                },
                "legs": [
                  {
                    "address": "5uGVSgMoRQTN5uabJswdKpUnj8VZhiQtYYGf75kHzSGx",
                    "amountIn": "1000000",
                    "amountOut": "27347948",
                    "feePpm": 2800,
                    "inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
                    "outMint": "DyNnmUs5ubatV2937iF7GhkwKLFbuju4gJnHNQ9kmWng",
                    "priceImpactPct": 0.271099,
                    "venue": "xdex"
                  },
                  {
                    "address": "GzJ48LyE9SPWg9sxWNhGH71NcsN3D6FhQpivK12YLWX5",
                    "amountIn": "27347948",
                    "amountOut": "2003332716",
                    "feePpm": 2800,
                    "inMint": "DyNnmUs5ubatV2937iF7GhkwKLFbuju4gJnHNQ9kmWng",
                    "outMint": "So11111111111111111111111111111111111111112",
                    "priceImpactPct": 0.68942643,
                    "venue": "xdex"
                  }
                ],
                "priceImpactPct": 0.96052543,
                "requiresGuard": false
              }
            ],
            "amountIn": "1000000",
            "amountOut": "2049354266",
            "amountOutNet": "2044230880",
            "asOfSlot": 73463565,
            "blocked": false,
            "candidates": [
              {
                "amountIn": "1000000",
                "amountOut": "2049354266",
                "confidence": {
                  "band": "excellent",
                  "level": "high",
                  "score": 100
                },
                "guard": {
                  "hardExcluded": false,
                  "maxPriceDeviationPct": 0,
                  "minPoolTvlXnt": 65884.29,
                  "penaltyBps": 0,
                  "thin": false,
                  "worstTradeReservePct": 0.00623893
                },
                "hops": 1,
                "legs": [
                  {
                    "address": "CAJeVEoSm1QQZccnCqYu9cnNF7TTD2fcUA3E5HQoxRvR",
                    "amountIn": "1000000",
                    "amountOut": "2049354266",
                    "feePpm": 2800,
                    "inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
                    "outMint": "So11111111111111111111111111111111111111112",
                    "priceImpactPct": 0.00623892,
                    "venue": "xdex"
                  }
                ],
                "priceImpactPct": 0.00623892,
                "requiresGuard": false
              },
              {
                "amountIn": "1000000",
                "amountOut": "2003332716",
                "confidence": {
                  "band": "good",
                  "level": "high",
                  "score": 83
                },
                "guard": {
                  "hardExcluded": false,
                  "maxPriceDeviationPct": 1.04741094,
                  "minPoolTvlXnt": 586.8,
                  "penaltyBps": 50,
                  "thin": false,
                  "worstTradeReservePct": 0.68942644
                },
                "hops": 2,
                "legs": [
                  {
                    "address": "5uGVSgMoRQTN5uabJswdKpUnj8VZhiQtYYGf75kHzSGx",
                    "amountIn": "1000000",
                    "amountOut": "27347948",
                    "feePpm": 2800,
                    "inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
                    "outMint": "DyNnmUs5ubatV2937iF7GhkwKLFbuju4gJnHNQ9kmWng",
                    "priceImpactPct": 0.271099,
                    "venue": "xdex"
                  },
                  {
                    "address": "GzJ48LyE9SPWg9sxWNhGH71NcsN3D6FhQpivK12YLWX5",
                    "amountIn": "27347948",
                    "amountOut": "2003332716",
                    "feePpm": 2800,
                    "inMint": "DyNnmUs5ubatV2937iF7GhkwKLFbuju4gJnHNQ9kmWng",
                    "outMint": "So11111111111111111111111111111111111111112",
                    "priceImpactPct": 0.68942643,
                    "venue": "xdex"
                  }
                ],
                "priceImpactPct": 0.96052543,
                "requiresGuard": false
              }
            ],
            "computeUnits": 210000,
            "confidence": {
              "band": "excellent",
              "level": "high",
              "score": 100
            },
            "executable": null,
            "expiresAt": 1787411961284,
            "explanation": {
              "aggregatePriceImpactPct": 0.00623892,
              "hopCount": 1,
              "hops": [
                {
                  "amountIn": "1000000",
                  "amountOut": "2049354266",
                  "feeBps": 28,
                  "inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
                  "index": 0,
                  "inputTransferFee": null,
                  "outMint": "So11111111111111111111111111111111111111112",
                  "outputTransferFee": null,
                  "poolId": "CAJeVEoSm1QQZccnCqYu9cnNF7TTD2fcUA3E5HQoxRvR",
                  "priceImpactPct": 0.00623892,
                  "venue": "xdex"
                }
              ],
              "legFees": [
                {
                  "feeBps": 28,
                  "poolId": "CAJeVEoSm1QQZccnCqYu9cnNF7TTD2fcUA3E5HQoxRvR"
                }
              ],
              "protocolFee": {
                "amount": "5123386",
                "bps": 25,
                "enforcedOnChain": true,
                "net": "2044230880",
                "pct": 0.25
              },
              "requiresGuard": false,
              "simulated": null,
              "whyThisRoute": {
                "considered": 20,
                "summary": "Best net output of 20 routes.",
                "tieBreak": "net-output",
                "tieEpsilonBps": 1,
                "tiedWithinEpsilon": 1
              }
            },
            "fee": {
              "amount": "5123386",
              "bps": 25,
              "enforcedOnChain": true,
              "net": "2044230880",
              "pct": 0.25
            },
            "freshnessVerified": true,
            "graphUpdatedAt": 1787411834465,
            "guard": {
              "hardExcluded": false,
              "maxPriceDeviationPct": 0,
              "minPoolTvlXnt": 65884.29,
              "penaltyBps": 0,
              "thin": false,
              "worstTradeReservePct": 0.00623893
            },
            "highImpact": false,
            "hops": 1,
            "inputMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
            "minimumAmountOut": "2046895040",
            "mode": "exactIn",
            "outputMint": "So11111111111111111111111111111111111111112",
            "parts": [
              {
                "legs": [
                  {
                    "address": "CAJeVEoSm1QQZccnCqYu9cnNF7TTD2fcUA3E5HQoxRvR",
                    "amountIn": "1000000",
                    "amountOut": "2049354266",
                    "feePpm": 2800,
                    "inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
                    "outMint": "So11111111111111111111111111111111111111112",
                    "priceImpactPct": 0.00623892,
                    "venue": "xdex"
                  }
                ],
                "percent": 100
              }
            ],
            "platformFee": {
              "amountToken": "5123386",
              "bps": 25,
              "percent": "0.25"
            },
            "priceImpactPct": 0.00623892,
            "quoteMs": 225,
            "repricedAtExecution": true,
            "requiresGuard": false,
            "route": [
              {
                "address": "CAJeVEoSm1QQZccnCqYu9cnNF7TTD2fcUA3E5HQoxRvR",
                "amountIn": "1000000",
                "amountOut": "2049354266",
                "feePpm": 2800,
                "inMint": "B69chRzqzDCmdB5WYB8NRu5Yv5ZA95ABiZcdzCgGm9Tq",
                "outMint": "So11111111111111111111111111111111111111112",
                "priceImpactPct": 0.00623892,
                "venue": "xdex"
              }
            ],
            "safety": {
              "level": "safe",
              "reasons": []
            },
            "savingsVsDirectPct": null,
            "selection": {
              "considered": 20,
              "summary": "Best net output of 20 routes.",
              "tieBreak": "net-output",
              "tieEpsilonBps": 1,
              "tiedWithinEpsilon": 1
            },
            "simulated": null,
            "slippageBps": 12,
            "slippageDynamic": true,
            "split": null,
            "splitAmountOut": null,
            "thinLiquidity": false,
            "ttlMs": 17000,
            "ttlSlots": 45,
            "validUntilSlot": 73463610,
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "amountIn": {
                    "description": "raw base units of inputMint (exactIn)",
                    "type": "string"
                  },
                  "amountOut": {
                    "description": "raw base units of outputMint (exactOut)",
                    "type": "string"
                  },
                  "inputMint": {
                    "description": "base58 X1 mint address",
                    "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                    "type": "string"
                  },
                  "maxHops": {
                    "description": "default 4; clamped to 1-8 by the pathfinder. Keep ≤ 6 so /api/tx/build (on-chain router, max 6 legs) executes the same route.",
                    "type": "number"
                  },
                  "mode": {
                    "description": "default exactIn",
                    "enum": [
                      "exactIn",
                      "exactOut"
                    ],
                    "type": "string"
                  },
                  "outputMint": {
                    "description": "base58 X1 mint address",
                    "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                    "type": "string"
                  },
                  "payer": {
                    "description": "base58 payer for simulate:true",
                    "type": "string"
                  },
                  "simulate": {
                    "description": "simulate the build (needs payer)",
                    "type": "boolean"
                  },
                  "slippageBps": {
                    "description": "explicit slippage in bps (clamped); omitted = dynamic",
                    "type": "number"
                  }
                },
                "required": [
                  "inputMint",
                  "outputMint"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "app.fortiblox.com",
  "lastUpdated": "2026-08-22T15:58:33.228Z",
  "quality": {
    "calls30d": 8,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-08-22T15:58:33.078Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "app.fortiblox.com",
    "manifest_name": "app.fortiblox.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}