Skip to content

decodePaymentResponseHeader

decodePaymentResponseHeader(headerValue): X402SettlementResponse

Defined in: src/x402/encoding.ts:209

Decodes a PAYMENT-RESPONSE header value.

Parameters

headerValue

string

Returns

X402SettlementResponse

Throws

If the header is not valid base64 / JSON / object.