preflight_gate
Validate crypto transactions and x402 payment requests before signing; returns PASS, CAUTION, or BLOCK with reasons and a short-lived receipt so unsafe intents stop early.
Instructions
Call this BEFORE signing any crypto transaction or x402 payment request. Returns PASS / CAUTION / BLOCK with typed reasons, the checks that actually ran, the checks that did not, and a short-lived receipt bound to the exact intent + block. If sign_allowed is false, DO NOT SIGN. If requires_ack is true, surface the reasons to the operator before signing. The receipt expires (default 90s): call again rather than reuse it. Free. Pass from (the wallet that will sign) to enable simulation and balance checks. For kind=transaction, chainId is REQUIRED (400 missing_chain without it). For payment intents with no from or no proof, the response is PASS with structural_only:true and names what was not checked. Optional caller-supplied checks: policy.sellerPayoutWallets is a payout allowlist, not provenance; policy.sellerPayoutManifest fetches a seller-signed manifest from a caller-pinned HTTPS origin and is the only source of payee_payout_binding; policy.obligation checks a local settled-key ledger and cumulative spend against a grant. The gate does not persist either state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>"
},
"name": "preflight_gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Transaction target (required when kind=transaction) | |
| data | No | 0x calldata for the transaction | |
| from | No | The wallet that will sign. Strongly recommended: enables simulation and balance checks. | |
| kind | Yes | payment = an x402 402 challenge; transaction = a chain transaction | |
| value | No | Native value in wei, as a decimal string | |
| policy | No | Operator policy. Omit for structural checks only. | |
| chainId | No | EVM chain id: 1 Ethereum, 42161 Arbitrum, 8453 Base. For payment, cross-checks the network. | |
| payment | No | Required when kind=payment | |
| ttlSeconds | No | Receipt lifetime in seconds, 15-300 (default 90) |