# x402 Payment Preflight Check

> x402 Payment Preflight Check is a paid API for AI agents from agent-economy-signal-x402-mainnet.bronzetti-andrea.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Inspects an x402-gated endpoint before payment to return risk signals, payment details, and a go/no-go action recommendation for autonomous agents.

## Facts

- Endpoint: GET https://agent-economy-signal-x402-mainnet.bronzetti-andrea.workers.dev/premium/x402-preflight
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-payment-preflight-check-1d4aa66f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-PuOlxws7zjPJ_wPtmFRJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-payment-preflight-check-1d4aa66f
```

Example prompt: Before you pay for that x402 endpoint at https://agent-economy-signal-x402-mainnet.bronzetti-andrea.workers.dev/premium/signal, run a preflight check on it so I can see the risk signals, the exact USDC amount, and whether I should go ahead and pay.

## When to prefer this

Use this endpoint when an AI agent needs to inspect an x402-gated API before committing a micropayment — especially when risk assessment, cost verification, or wallet address confirmation is needed prior to executing a USDC transaction on Base mainnet. Prefer this over directly attempting the paid call when operating autonomously with budget constraints or when vetting unknown x402 providers.

## Known failure modes

- Invalid or malformed URL returns an error response
- Target endpoint does not implement x402 and returns non-402 status
- Preflight result expires after validity_for_seconds elapses requiring a fresh call
- Network connectivity issues to the target endpoint cause inspection failure
- Non-HTTPS URLs are rejected by URI format validation

## How this service works

Machine-readable pay-per-request intelligence for autonomous agents on Base mainnet. x402 v2 resources expose deterministic decisions, market demand signals, payment preflight checks, repository intelligence, crypto catalysts, OpenAPI integration analysis and token liquidity signals.

## Output

Returns a JSON object indicating whether the target URL is payable, the recipient wallet address, payment scheme, Base mainnet chain ID, estimated USD cost, a next-action recommendation (e.g. PAY_IF_THE_RESOURCE_MATCHES_YOUR_TASK), any risk signals, whether the endpoint has bazaar metadata, and a validity window in seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "HTTPS x402 endpoint to inspect before payment."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "payable",
  "target": "https://example.com/premium/resource",
  "payment": {
   "pay_to": "0x0000000000000000000000000000000000000000",
   "scheme": "exact",
   "network": "eip155:8453",
   "x402_version": 2,
   "estimated_usd": 0.005
  },
  "product": "x402 Purchase Preflight",
  "version": "1.0.0",
  "price_usd": 0.003,
  "next_action": "PAY_IF_THE_RESOURCE_MATCHES_YOUR_TASK",
  "generated_at": "2026-08-25T18:00:00.000Z",
  "risk_signals": [],
  "bazaar_metadata": true,
  "valid_for_seconds": 60
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-payment-preflight-check-1d4aa66f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-economy-signal-x402-mainnet.bronzetti-andrea.workers.dev](https://www.zero.xyz/host/agent-economy-signal-x402-mainnet.bronzetti-andrea.workers.dev/llms.txt)
