Skip to content

x402-demo: Base mainnet + CDP facilitator (durability) - #218

Merged
fabianocruz merged 1 commit into
mainfrom
feat/x402-demo-mainnet
Jul 10, 2026
Merged

x402-demo: Base mainnet + CDP facilitator (durability)#218
fabianocruz merged 1 commit into
mainfrom
feat/x402-demo-mainnet

Conversation

@fabianocruz

Copy link
Copy Markdown
Member

What

Makes the mainnet x402-demo durable in main. x402.codespar.dev has been selling on Base mainnet since 07-09 (deployed via manual railway up), but the code only lived on an old divergent branch + the running container. This lands exactly that state, cleanly.

  • server.ts — env-driven network: X402_NETWORK=eip155:8453 → Base mainnet via the authenticated CDP facilitator (the public x402.org facilitator is Sepolia-only). Default stays Sepolia.
  • package.json/package-lock.json — adds @coinbase/x402 (the CDP facilitator client).
  • railway.json — drops watchPatterns, which never matched under --path-as-root manual upload and silently SKIPPED deploys.

Why a fresh branch

The original work sat on feat/x402-cdp-connection, branched from an old main — diffing it now showed ~40 catalog packages as deletions (branch was behind). This PR is a fresh branch off current origin/main carrying only the 4 demo files — no catalog packages touched.

🤖 Generated with Claude Code

Env-driven network (X402_NETWORK=eip155:8453 → Base mainnet) with the
authenticated Coinbase CDP facilitator for verify/settle (the public
x402.org facilitator is Sepolia-only). Default stays Base Sepolia.
Drops railway.json watchPatterns, which never matched under the
--path-as-root manual upload and silently SKIPPED deploys.

This is the state already running in prod on x402.codespar.dev (deployed
via manual railway up); this commit makes it durable in main. Only the
four demo files change — no catalog packages touched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fabianocruz
fabianocruz merged commit 2a5aec7 into main Jul 10, 2026
3 checks passed
@fabianocruz
fabianocruz deleted the feat/x402-demo-mainnet branch July 10, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant