x402-stellar-contextlisted
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)