@me2em/x402
    Preparing search index...

    Function paymentRequiredResponse

    • Builds a 402 Response with the base64 PAYMENT-REQUIRED header (ТЗ §3.4). The body is the JSON of PaymentRequired (informative); extra ResponseInit is merged (custom headers survive; content-type defaults to application/json). Throws TypeError on a structurally invalid pr or an oversized header value.

      Parameters

      • pr: X402PaymentRequired
      • Optionalinit: ResponseInit

      Returns Response