Skip to main content

Module types

Module types 

Source

Structs§

PaymentPayload
Sent by the client in the X-Payment header (base64-encoded JSON).
PaymentRequired
Returned by the resource server as the body of a 402 Payment Required response.
PaymentRequirements
One accepted payment option served in the 402 response.
ResourceInfo
SettlementResponse
Returned by the facilitator POST /settle endpoint and attached to the X-Payment-Response header as base64-encoded JSON.
SvmExactPayload
Payload for the Solana exact scheme. The client creates a partially-signed SPL Token TransferChecked transaction, serialises it with bincode, and base64-encodes it here. The fee payer slot is left empty — the facilitator fills it at settlement.
VerifyResponse
Returned by the facilitator POST /verify endpoint and the inline verifier.

Constants§

X402_VERSION