x402 payment preflight
presign_preflight_x402Paste the 402 challenge you are about to pay (and optionally your signed payment). Checks asset contract, amount vs quote, EIP-712 domain, EIP-3009 support, payer balance, dry-run of the value move, signature recovery, nonce reuse, expiry, payTo sanctions/freeze/exposure and seller domain age. Returns a signed verdict. Free: 25 calls/day; then $0.003 USDC per call via x402.
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": {
"challenge": "<challenge>"
},
"name": "presign_preflight_x402"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| payer | No | ||
| policy | No | Optional: your rules. Hashed into the signed receipt. | |
| payment | No | x402 payment payload (JSON or base64 PAYMENT-SIGNATURE) | |
| challenge | Yes | 402 JSON body, base64 PAYMENT-REQUIRED header, or one requirements object |