{"name":"swap-preflight-check","description":"Pre-swap safety check for a token pair before you sign: run this as the swap preflight, pre-swap safety, and price impact check an agent runs before it commits a trade. Composite: one call runs tx-simulate-swap + price-impact + honeypot-check + dex-liquidity-depth + lp-lock-check in parallel and merges them into one report. Returns a routed swap quote (expected output, min-out at slippage, gas), effective-price impact across a few USD sizes, a honeypot / sell-tax simulation on the token you'd receive, that token's pooled liquidity depth, and a best-effort LP-lock check. Send token_in, token_out, amount (smallest units of token_in), and an optional chain. Different from token-clearance-check: this is scoped to one specific swap you're about to execute, not a general token risk score. Use it as a pre-swap safety API, honeypot-before-swap check, or DEX preflight for trading agents.","price":"$0.08","method":"POST","input_schema":{"properties":{"token_in":{"type":"string","description":"0x-prefixed 20-byte EVM address of the token you are selling."},"token_out":{"type":"string","description":"0x-prefixed 20-byte EVM address of the token you would receive."},"amount":{"type":"string","description":"Amount of token_in to swap, as a decimal string in smallest units (wei-equivalent)."},"chain":{"type":"string","description":"Optional EVM chain slug: base, ethereum, polygon, arbitrum, or optimism. Default base."}},"required":["token_in","token_out","amount"]},"input_example":{"token_in":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","token_out":"0x4200000000000000000000000000000000000006","amount":"100000000","chain":"base"},"output_example":{"token_in":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","token_out":"0x4200000000000000000000000000000000000006","amount_in":"100000000","chain":"base","simulation":{"would_succeed":true,"expected_out":"38200000000000000","min_out":"37818000000000000","gas_estimate":"180000"},"price_impact":{"quotes":[{"size_usd":100,"impact_pct":0.02}]},"honeypot":{"risk":{"level":"low","reasons":[]},"simulation":{"is_honeypot":false}},"liquidity_depth":{"total_liquidity_usd":42000000,"pool_count":12},"lp_lock":null,"lp_lock_note":"lp-lock-check runs against token_out on a best-effort basis; a null/empty result usually means token_out isn't itself an LP pair token.","note":"Data-only pre-swap safety pack. Not investment advice; not a guarantee the swap will succeed on-chain.","composed_of":["tx-simulate-swap","price-impact","honeypot-check","dex-liquidity-depth","lp-lock-check"],"components":[{"name":"tx-simulate-swap","ok":true,"ms":900},{"name":"price-impact","ok":true,"ms":2400},{"name":"honeypot-check","ok":true,"ms":700},{"name":"dex-liquidity-depth","ok":true,"ms":500},{"name":"lp-lock-check","ok":false,"ms":1100,"error":"not an LP token"}],"degraded":true},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}