x402 escrow stack
x402b extends the x402 standard (in-band HTTP-402 payments) with non-custodial escrow on the Boson Diamond. A buyer requests a resource, gets a 402 Payment Required with a Boson escrow option, signs a meta-transaction, and the facilitator settles it on-chain. Funds release on redemption or dispute resolution.
Packages
| Package | Role | Reference |
|---|---|---|
x402-core | Schemas, EIP-712 builders, state machine | → |
x402-evm | Calldata builders for the two flows (deferred / atomic) | → |
x402-server | Resource-server SDK (framework-agnostic) | → |
x402-server-express | Express adapter | (in package) |
x402-client | Buyer-side SDK (framework-agnostic) | → |
x402-client-fetch | Fetch API adapter | (in package) |
x402-facilitator | Reference relayer library | → |
x402-facilitator-express | Express adapter | (in package) |
x402-fulfillment | Pluggable fulfillment channels (inline · email · XMTP · webhook · IPFS) | → |
x402-actions | State machine + nextActions envelope | → |
Three actors
When to use x402
- You sell access to an HTTP resource (API, file, model inference).
- The buyer is an AI agent that needs in-band payment, not OAuth + Stripe.
- You want non-custodial escrow without writing your own contracts.
If you're selling physical goods, use the Core SDK directly. If you're selling digital goods through a marketplace, use the SDK or MCP.
Next
- Build with x402 → Overview for the full integration walkthrough.
- Quickstart → Accept x402 escrow payments for a 15-minute setup.