Skip to content

X402PaymentPayload

Defined in: src/x402/types.ts:201

The JSON body the client sends to a paywalled resource (typically base64- encoded inside an X-PAYMENT header — see src/x402/encoding.ts).

accepted is the single X402PaymentRequirements entry the client chose from the server’s accepts list. payload is scheme-specific; for the exact-EVM scheme it has the shape of X402ExactEvmPayload.

payload is typed as the open Record<string, unknown> so that this interface stays structurally compatible with @x402/core’s PaymentPayload. Use a scheme-aware parser to narrow it.

Properties

accepted

readonly accepted: X402PaymentRequirements

Defined in: src/x402/types.ts:204


extensions?

readonly optional extensions?: Record<string, unknown>

Defined in: src/x402/types.ts:206


payload

readonly payload: Record<string, unknown>

Defined in: src/x402/types.ts:205


resource?

readonly optional resource?: X402ResourceInfo

Defined in: src/x402/types.ts:203


x402Version

readonly x402Version: 2

Defined in: src/x402/types.ts:202