Provider Guide

Expose endpoints with x402 requirements and serve resources after payment.

Discovery

GET /.well-known/x402 -> {
  "accepts": [
    {
      "route": "/api/data",
      "requirements": {
        "method": "GET",
        "network": "solana-devnet",
        "asset": "SOL",
        "maxAmountRequired": "5000"
      }
    }
  ]
}

402 Response

HTTP/1.1 402 Payment Required
X-PAYMENT-REQUIREMENTS: <base64 json>