Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Reference — x402-core · Boson Protocol
Skip to content

@bosonprotocol/x402-core

The primitive layer of the x402b stack. Other packages depend on this.

Exports

  • Schemas: zod validators for the escrow scheme 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, and boson-* action IDs.
  • Errors: tagged EscrowError types with codes.

Source