Independent price check
Uses Jupiter Swap API V2 /order with no taker to obtain current best-price output without trusting the caller's quote.
A $0.02 x402 preflight that independently checks a Solana trade against Jupiter's live market, evaluates token risk, and optionally simulates the actual transaction before execution.
Checking runtime configuration…
This demo validates supplied quote fields only. The paid endpoint adds independent live market and token verification.
Send an ExactIn trade request. Optionally attach the agent's quote and unsigned transaction. Preflight independently obtains a current Jupiter V2 order, then returns evidence and a policy-friendly decision.
POST https://preflight-agent.netlify.app/api/check
content-type: application/json
{
"trade": {
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000000000"
},
"quote": { "...": "optional submitted quote" },
"transactionBase64": "optional legacy/v0 transaction"
}
Uses Jupiter Swap API V2 /order with no taker to obtain current best-price output without trusting the caller's quote.
Uses Jupiter Tokens V2 metadata: verification, organic score, liquidity, holder count, authority status, concentration, and pool age.
If a legacy/v0 base64 transaction is supplied, a private Solana RPC simulation is required. Dependency failure returns 503 without settlement.
x402 v2 exact payment in Solana USDC. The service verifies payment first, performs the check, then settles only after a billable result exists.
The contract separates the final decision from market verification, token risk, and simulation. Agents can enforce their own policy on top of the response.
{
"confidence": "high",
"recommendation": "simulation_passed_review_binding_before_sign",
"analysis": {
"score": 96,
"decision": "allow",
"findings": []
},
"verification": {
"market": { "status": "verified", "router": "jupiterz" },
"tokenRisk": { "status": "verified" },
"simulation": { "status": "passed" }
}
}
Preflight screens execution conditions; it is not a smart-contract audit, rug-pull guarantee, or investment recommendation. A simulated transaction is not yet cryptographically decoded and bound to the submitted quote, so the API states that limitation instead of pretending otherwise.