routing

One call: should I do this, and what should I know first?

Everything needed to decide well exists, but across five endpoints: can this corridor be served right now, which rails are actually competing, what would make it cheaper, is the duration measured or guessed, and does this spend fit the budget the principal set. An agent that must make five calls and reconcile them will make one and guess. BLOCKERS AND WARNINGS ARE NEVER MERGED. A blocker WILL fail; a warning might cost you. An agent that cannot tell "impossible" from "suboptimal" either aborts on noise or ploughs through real obstacles. A check that could not run is reported in unavailable and DOWNGRADES the verdict to caution — silence is never read as assent. Pass an unknown mandateId and you are BLOCKED, because you would be spending outside any budget while believing you were inside one. proceed:true means nothing KNOWN TO US blocks it. It is not a promise of success.

post/api/preflight/full

Request

  • Base URL: https://api.anygas.xyz/svc
  • URL: https://api.anygas.xyz/svc/api/preflight/full
  • Auth: none declared

Request body

amountstring required

Source-token smallest units.

fromTokenstring

Symbol or address; omit for native.

toTokenstring

Symbol or address; omit for native.

toAddressstring

Recipient; defaults to fromAddress.

fromAddressstring

Quote origin; anonymous default used if omitted.

slippagenumber

Fraction, e.g. 0.005.

tokenstring

Shorthand: sets BOTH fromToken and toToken (e.g. "USDC"). Accepted on POST bodies and as a GET query parameter. Explicit fromToken/toToken win when present.

Example request

{
  "amount": "50000000",
  "fromToken": "USDC",
  "toToken": "BTC",
  "token": "USDC"
}

Response

verdict, blockers, warnings and the supporting detail

object required

Changes

No recorded changes to this operation across all 1 revision of this API.