X402 preflight — verify endpoint before paying — endpoint safety — USDC payment check — $0.001
x402_payment_preflightPaid $0.001 USDC on Base or Solana transaction-path gate for autonomous buyers. Returns eligible/blocked, exact target payment terms, fail-closed reason codes and verifiable evidence before caller authorization. AgentResolver never requests a private key, signs the target payment, or custodies/forwards target funds.
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": {
"url": "<url>"
},
"name": "x402_payment_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| method | No | ||
| maxPriceUsd | No | ||
| expectedPayTo | No | ||
| expectedNetwork | No | ||
| allowUnpaidPostProbe | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| url | Yes | ||
| guard | Yes | ||
| status | Yes | ||
| latencyMs | Yes | ||
| evidenceReceipt | Yes | ||
| prepaymentDecision | Yes |