Skip to content

Function: isX402PaymentRequiredResponse() ​

ts
function isX402PaymentRequiredResponse(x): x is X402PaymentRequiredResponse<X402PaymentRequirements<unknown>>;

Defined in: packages/x402-core/src/types/requirements.ts:210

True when x is a well-formed 402 envelope, whatever schemes it offers.

Parameters ​

x ​

unknown

Returns ​

x is X402PaymentRequiredResponse<X402PaymentRequirements<unknown>>