Pay-and-retry demo

Test the payment loop end to end.

This page talks to a demo Worker route on the same domain. It requests a 402 quote, sends an exact native payment from your browser wallet, then retries the same request with the tx hash in x-alumni-payment.

402 quote Browser wallet Retry header

Demo client

Use the demo route or paste a live paid route that follows the same header contract.

We reuse this value on return visits so the QR session can open immediately.

Exact contract

This is the header contract the Worker demo understands today. It is intentionally simple so the x402-style loop is obvious.

402 response

{
  "error": "payment_required",
  "payTo": "0x6A02a2E71A236a06f50cAD68220966C36F54498D",
  "destinations": {
    "eth": "0x6A02a2E71A236a06f50cAD68220966C36F54498D",
    "btc": "bc1qsat6yg2vhmdfn3p2ehp7x45dxy9dxktxjhf592",
    "sol": "AUJFeh4cYDT7ZvVGqQPKoa1G38hJMxUfAQGnWjyDyi4h",
    "tron": "TRfDQvTf36NbtXCvDUwwDwBqfrBuLDAF4s"
  },
  "amountEth": "0.002",
  "chainId": 4663,
  "paymentHeader": "x-alumni-payment"
}

Retry request

{
  "x-alumni-payment": {
    "txHash": "0x...",
    "chainId": 8453
  }
}

Phase alignment

The demo is the bridge between the catalog and production settlement.

Phase 1

Publish clear discovery pages and the first five live products.

Phase 2

Expand the catalog with specialized agent products and granular pricing.

Phase 3

Prove quote, wallet payment, and retry behavior in a browser.

Phase 4

Persist receipts, verify payment on the edge, and scale the monetized catalog.