{
  "name": "x402 Preflight",
  "description": "Preflight any x402 endpoint before you pay it: live 402, readable terms, Base USDC price, payTo against the wallet you expect (Bankr Cloud aware), 402-before-validation and discovery document.",
  "paidRoute": "POST https://x402-preflight.broke2builtai.com/v1/preflight",
  "priceUsd": 0.001,
  "network": "eip155:8453",
  "payTo": "0x7a3E312Ec6e20a9F62fE2405938EB9060312E334",
  "discovery": "https://x402-preflight.broke2builtai.com/.well-known/x402",
  "input": {
    "type": "object",
    "required": [
      "url"
    ],
    "properties": {
      "url": {
        "type": "string",
        "description": "The https:// x402 endpoint to check"
      },
      "method": {
        "type": "string",
        "enum": [
          "GET",
          "POST"
        ],
        "default": "POST"
      },
      "body": {
        "description": "Optional JSON body to send. Omit it to test 402-before-validation with {}."
      },
      "wallet": {
        "type": "string",
        "description": "Optional 0x address you expect to be paid"
      }
    }
  },
  "example": {
    "url": "https://penniless-json-repair.sjaman.workers.dev/repair/json",
    "wallet": "0x3D98800c64C345950E1eAaa076D88C12d1BF5F37"
  },
  "freeAlternative": "node scripts/health-check.mjs --url <endpoint> --wallet <0x...> in the x402-wiki repo runs the same checks locally for free.",
  "source": "https://github.com/lordbasilaiassistant-sudo/x402-wiki/tree/main/examples/x402-worker"
}