@bosonprotocol/x402-core
The primitive layer of the x402b stack. Other packages depend on this.
Exports
- Schemas: zod validators for the
escrowscheme wire format (402 response shape, X-PAYMENT header shape). - EIP-712 builders: typed-data domain + types for
FullOffer, the meta-tx envelope, and four token-auth strategies. - State machine: states (
awaiting_redemption,awaiting_fulfillment,delivered,completed,disputed,accepted,shipped,finalized), legal transitions, andboson-*action IDs. - Errors: tagged
EscrowErrortypes with codes.