Stellar x402
@402-stellar is built to empower builders, creators, and people everywhere to build apps, grow businesses, create what they love, and earn onchain.
Get Started
Install @402-stellar and start building internet-native payments
Express middleware for
instant payments.
Protect your API routes with x402-stellar-express. Monetize your data, AI models, and content with just a few lines of code.
Easy Integration
Add payment protection to any Express route with a single middleware. Configure prices per route or pattern.
Flexible Configuration
Customize assets, networks, timeouts, and more. Configure extensive options to fit your business model.
Powerful primitives for
programmable money.
Visualizing how x402-stellar-express handles the heavy lifting of payment logic, verification, and settlement.
HTTP 402 Protocol
Standardized flow: Request ➔ 402 Challenge ➔ Payment ➔ Resource Access.
Instant Settlement
Payments settle on the Stellar network in 3-5 seconds with near-zero fees.
Simple Configuration
Define routes, prices, and assets directly in your Express middleware.
Cryptographic Verification
Middleware automatically verifies transaction signatures and validity.
Multi-Asset Support
Accept payments in native XLM or any Stellar ecosystem token (USDC, EURC).
Automated Error Handling
Gracefully handles timeouts, insufficient funds, and network errors.
Real Use Case Ideas
See how developers are using @402-stellar to build the future of web monetization

API Monetization
Charge per-request for your APIs without complex subscription models. Pay-per-use made simple.

Content Access and Subscription Mechanism
Gate premium content, articles, or media with instant micropayments. No accounts required. Seamless subscription management.

Enterprise Solutions
Deploy permissioned payment rails for B2B integrations with full audit trails and enterprise-grade security.
