Preflight pay-per-call smart-contract security & transaction simulation for AI agents

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.

Prices

RouteProductPrice
GET /v1/token-risk/demoFree full-shape token-risk demo (5/day)FREE
POST /v1/scanSolidity scan — solc + Slither + 5 custom DeFi detectors$0.01
POST /v1/simTransaction simulation — RPC eth_call + revert decoding$0.05
POST /v1/sim/deepDeep simulation — anvil fork: gas, balance deltas, internal traces$0.25
POST /v1/scan/projectMulti-file project scan$0.10
POST /v1/address-riskAddress risk heuristics$0.005
POST /v1/token-riskToken risk by address — honeypot, transfer tax, owner privileges$0.02
POST /v1/bundleCombined token-risk + address-risk + optional source scan$0.03
GET /v1/verifyVerify a past attestation by source digestfree

Works with Greenlight

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.

Try it

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'

Agent surface

Machine-readable everything: OpenAPI · llms.txt · x402 discovery · /metrics · MCP tools: preflight_check, preflight_sim, preflight_token_risk, preflight_bundle, preflight_verify, preflight_pricing.