TEZ402 // PERMIT2 UPLINK BETA

Reference implementation for x402 payments, Permit2 signing, and facilitator-sponsored gas.

Accept crypto payments with zero gas costs for end users. Settle on-chain. Stay compliant.

Evaluation path: run the 5-step demo, then use Quick Start to deploy your own stack.

x402 Specv2 reference
ChainEtherlink (42793)
SettlementPermit2
Gas ModelFacilitator Sponsored
Choose Your Role
Client Integrator Focus
  • Detect `HTTP 402 Payment Required`.
  • Parse the `Payment-Required` payload and select supported method (`permit2`).
  • Sign Permit2 typed data and retry the protected endpoint with `Payment-Signature`.
How the Flow Works
Client App
  -> GET /protected-resource
Store API
  -> 402 Payment Required + x402 payment requirement
Client App
  -> signs Permit2 typed data (off-chain)
Client App
  -> retries resource request with Payment-Signature
Store API
  -> calls Facilitator /settle
Facilitator
  -> sponsors gas + executes Permit2 settlement on-chain
Store API
  -> returns protected resource
  1. Client requests protected resource.
  2. Store responds with 402 and exact payment requirement.
  3. Client signs Permit2 authorization matching store terms.
  4. Facilitator validates and settles on-chain while paying gas.
  5. Store verifies settlement and serves content.
On-Chain Endpoints & References
Chain ID42793
Public Facilitator (Current)https://exp-faci.bubbletez.com
Public Store (Current)https://tez402.bubbletez.com/api/weather

Gas sponsored means the user signs authorization; the facilitator submits and pays network gas for settlement execution.

BBT is the sample ERC-20 token used by this beta flow. See the BBT token reference for contract details.

No public faucet is bundled in this beta. If you do not have BBT, either test with your own ERC-20 using Custom Token Product in Demo Step 3, or request test allocation via GitHub issue.

How this compares with upstream Coinbase behavior: Coinbase comparison report.