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
readonlyaccepted:X402PaymentRequirements
Defined in: src/x402/types.ts:204
extensions?
readonlyoptionalextensions?:Record<string,unknown>
Defined in: src/x402/types.ts:206
payload
readonlypayload:Record<string,unknown>
Defined in: src/x402/types.ts:205
resource?
readonlyoptionalresource?:X402ResourceInfo
Defined in: src/x402/types.ts:203
x402Version
readonlyx402Version:2
Defined in: src/x402/types.ts:202