{
  "name": "code402 proxy",
  "version": "1.0.0",
  "description": "Metered gate for agent API calls: spend caps, idempotency, hash-chained audit. Bring your own upstream key; pay only for the gate.",
  "x402Version": 1,
  "network": "base",
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "payTo": "0xc59c85e661d34084a7769f955d17fd38254a6235",
  "pricing": {
    "per_call_x402_atomic": 1000,
    "per_call_token_atomic": 800,
    "free_calls_per_day": 0,
    "topup_min_atomic": 100000,
    "topup_max_atomic": 100000000,
    "topup_terms": "closed-loop stored value for Code402 services; no withdrawal; pending legal review"
  },
  "endpoints": {
    "proxy": "https://gate.hcrb.in/p/{upstream}/{path}",
    "upstreams": [
      "openai",
      "anthropic",
      "openrouter"
    ],
    "topup": "https://gate.hcrb.in/v1/credits/topup?amount={atomic}",
    "balance": "https://gate.hcrb.in/v1/credits",
    "audit_head": "https://gate.hcrb.in/v1/audit/head",
    "audit_verify": "https://gate.hcrb.in/v1/audit/verify?from=1&limit=1000"
  },
  "headers": {
    "payment": "X-PAYMENT (x402 v1, scheme exact)",
    "token": "X-Code402-Token",
    "idempotency": "Idempotency-Key (retries return the first result, never charge twice)"
  }
}