{
  "version": "1",
  "service": {
    "name": "CoinVet",
    "description": "Money checks for agents: BTC price, fees, crypto + Lightning address checks, IBAN, BIC, US ZIP.",
    "contact": "fairpage.studio@proton.me"
  },
  "payment_methods": [
    {
      "type": "lightning",
      "backend": "LNURL",
      "address": "marriedcrook211@walletofsatoshi.com"
    }
  ],
  "routes": [
    {
      "path": "/paid/btc-price",
      "method": "GET",
      "description": "Current Bitcoin price in major fiat currencies from mempool.space, plus sats per currency unit. Indicative, refreshed about every minute.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "Fiat code (default USD)"
          }
        }
      },
      "example_query": {
        "currency": "USD"
      }
    },
    {
      "path": "/paid/mempool-fees",
      "method": "GET",
      "description": "Recommended Bitcoin on-chain fee rates in sat/vB (next block, ~30 min, ~1 h, economy, minimum), mempool size, current block height, and the example cost in sats of a typical 140 vB transaction.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {}
      },
      "example_query": {}
    },
    {
      "path": "/paid/crypto-address-validate",
      "method": "GET",
      "description": "Check a cryptocurrency address offline before using it: Bitcoin legacy/P2SH (base58check), segwit/taproot (bech32/bech32m), Ethereum and all EVM chains incl. Base (EIP-55 checksum via keccak-256), Litecoin, Dogecoin, Tron and Solana. Returns valid, chain, network, type, and the correctly checksummed form. Catches typos and copy errors.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "The address to check"
          },
          "chain": {
            "type": "string",
            "description": "Optional hint, e.g. solana"
          }
        },
        "required": [
          "address"
        ]
      },
      "example_query": {
        "address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"
      }
    },
    {
      "path": "/paid/lightning-address-check",
      "method": "GET",
      "description": "Resolve a Lightning address (user@domain) or bech32 LNURL to its LNURL-pay endpoint and return whether it is valid, min/max sendable sats, comment length, Nostr zap support and description. Never requests an invoice or pays. Also recognizes BOLT11 invoices.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "Lightning address (user@domain) or LNURL"
          }
        },
        "required": [
          "address"
        ]
      },
      "example_query": {
        "address": "user@getalby.com"
      }
    },
    {
      "path": "/paid/iban-validate",
      "method": "GET",
      "description": "Validate an International Bank Account Number: format, per-country length (80+ countries) and the ISO 7064 mod-97 checksum. Returns country, check digits, BBAN and the formatted IBAN. Format only; does not confirm the account exists.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {
          "iban": {
            "type": "string",
            "description": "IBAN, spaces allowed"
          }
        },
        "required": [
          "iban"
        ]
      },
      "example_query": {
        "iban": "GB82WEST12345698765432"
      }
    },
    {
      "path": "/paid/bic-validate",
      "method": "GET",
      "description": "Validate a BIC/SWIFT code's structure (bank code, ISO country, location, optional branch) and flag test BICs. Format check only, not a directory lookup.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {
          "bic": {
            "type": "string",
            "description": "BIC/SWIFT code (8 or 11 chars)"
          }
        },
        "required": [
          "bic"
        ]
      },
      "example_query": {
        "bic": "DEUTDEFF500"
      }
    },
    {
      "path": "/paid/us-zip-lookup",
      "method": "GET",
      "description": "Look up a US ZIP code: city/place names, state, latitude/longitude and the state's primary IANA time zone. Useful for checkout/address sanity checks and shipping estimates.",
      "price": {
        "type": "static",
        "amount_msat": 100000
      },
      "credits_per_payment": 1000,
      "macaroon_timeout_secs": 2592000,
      "request_schema": {
        "type": "object",
        "properties": {
          "zip": {
            "type": "string",
            "description": "5-digit US ZIP code"
          }
        },
        "required": [
          "zip"
        ]
      },
      "example_query": {
        "zip": "10001"
      }
    }
  ]
}