preflight
Pre-Sign Co-Pilot — the ONE call an agent makes before signing ANY transaction, on ANY chain. Returns a single GO/CAUTION/STOP verdict: will it succeed (and if it reverts, why + the exact fix), is it safe (sanctions/drainer/unlimited-approval/rug — hard STOP), true cost (gas + USD), your exact wallet balance-changes after, AND the corrected transaction to sign instead. EVM: send { chain, tx:{to,data,from?,value?}, token?, spender?, swap? }. Solana: send { chain:'solana', transaction?, outputMint?, swap? }. Non-custodial — the corrected tx comes back UNSIGNED and you sign it. The mandatory guardrail at the universal choke point before signing. [x402 paid tool — price $0.01; POST /api/preflight]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | EVM unsigned tx { to, data?, from?, value? } | |
| swap | No | Optional swap intent to build the corrected best-execution route (Solana: {inputMint,outputMint,amount,userPublicKey,slippageBps?}; EVM: {sellToken,buyToken,sellAmount,taker}) | |
| chain | No | base (default), ethereum, arbitrum, optimism, polygon, bsc, or solana | |
| token | No | EVM: token being spent (lets us build the exact approve() fix) | |
| strict | No | Hard-STOP on any likely revert or HIGH risk | |
| spender | No | EVM: spender/router for the approve() fix (defaults to tx.to) | |
| outputMint | No | Solana: token mint to safety-check (rug/authorities) | |
| transaction | No | Solana: base64 serialized (unsigned) transaction to simulate |