← ClaudeAtlas

x402-stellar-contextlisted

Project context for the x402-stellar monorepo. Use this to understand what the project does, how it's structured, and how the pieces fit together. Load this first when working on any part of the codebase.
stellar/x402-stellar · ★ 9 · Data & Documents · score 70
Install: claude install-skill stellar/x402-stellar
# x402-stellar Context ## What This Is An implementation of the [x402 payment protocol](https://www.x402.org/) for the Stellar network. The x402 protocol uses HTTP status code 402 (Payment Required) to enable machine-readable paywalls — a server responds with 402 + a `PAYMENT-REQUIRED` header, the client pays via blockchain, then retries the request with a `PAYMENT-SIGNATURE` header. The facilitator verifies and settles payments on-chain. This repo provides: - A **Stellar facilitator** that verifies and settles x402 payments on the Stellar blockchain - A **paywall server** example using Express + the `@x402/express` middleware - A **React SPA client** that renders a wallet-connect paywall UI when it receives a 402 - A **paywall package** that generates the HTML paywall page with Stellar wallet integration ## How x402 Payment Flow Works ``` Client Server Facilitator Stellar | | | | |-- GET /networks ------->| | | |<-- { networks: [...] } -| | | | | | | |-- GET /protected/:net ->| | | |<-- 402 + requirements --| | | | | | | | (user signs tx in wallet)