Installation
Functions
createX402ChallengeHeader
Constructs a base64-encoded x402 challenge string conforming to protocol specifications.
parsePaymentSignatureHeader
Decodes and validates a client Payment-Signature header.
Schemas (Zod)
X402ChallengeSchema: Validates challenge parameters.PaymentSignatureSchema: Validates inbound payment signature structures.RoutePricingPolicySchema: Validates route price, asset, network, and recipient configs.