x402USDC on BaseEIP-712 attested
POST Solidity source or a transaction, receive a severity-scored, signed verdict:
looks_ok · review · block. Payment happens inline over
HTTP 402 — no accounts, no sign-ups (optional API keys available for enterprise use). First 10 scans/day are free with the
X-Preflight-Free: trial header.
Free token-risk demo:
GET /v1/token-risk/demo?address=0x... — FREE (5/day):
the FULL token-risk report. See exactly what a $0.02 paid call buys before paying.
| Route | Product | Price |
|---|---|---|
GET /v1/token-risk/demo | Free full-shape token-risk demo (5/day) | FREE |
POST /v1/scan | Solidity scan — solc + Slither + 5 custom DeFi detectors | $0.01 |
POST /v1/sim | Transaction simulation — RPC eth_call + revert decoding | $0.05 |
POST /v1/sim/deep | Deep simulation — anvil fork: gas, balance deltas, internal traces | $0.25 |
POST /v1/scan/project | Multi-file project scan | $0.10 |
POST /v1/address-risk | Address risk heuristics | $0.005 |
POST /v1/token-risk | Token risk by address — honeypot, transfer tax, owner privileges | $0.02 |
POST /v1/bundle | Combined token-risk + address-risk + optional source scan | $0.03 |
GET /v1/verify | Verify a past attestation by source digest | free |
Preflight analyzes the contract. Greenlight clears the trade — wallet balances, open approvals, and pair-check (can this wallet safely trade this token at this size?) for $0.03.
Together: pair-check $0.03 + token-risk $0.02 — a complete
pre-trade check for $0.05, cheaper than a single bad trade.
curl -i -X POST https://preflight--preflight-api-api.us-east.modal.run/v1/scan \
-H 'Content-Type: application/json' \
-d '{"source":"contract A {}"}'
# → 402 Payment Required, PAYMENT-REQUIRED header
# pay via x402 (USDC on Base), retry with PAYMENT-SIGNATURE → verdict
# Verify a past verdict (free)
curl 'https://preflight--preflight-api-api.us-east.modal.run/v1/verify?digest=0x...&attestation=%7B...%7D'
Machine-readable everything: OpenAPI ·
llms.txt · x402 discovery ·
/metrics · MCP tools: preflight_check,
preflight_sim, preflight_token_risk,
preflight_bundle, preflight_verify,
preflight_pricing.