π SPL-402 Proxy v1.0.0
First stable release of SPL-402 Proxy - monetize your APIs with Solana payments in minutes!
β¨ Features
- Zero-Code API Monetization - Add payment requirements to any HTTP API without modifying backend code
- Config-Based Setup - Simple JSON configuration with interactive CLI wizard
- Flexible Payment Schemes - Accept native SOL or any SPL token (USDC, USDT, custom tokens)
- Multi-Route Pricing - Set different prices for different endpoints and HTTP methods
- Discovery System - Built-in service discovery for SPL-402 enabled APIs
- Analytics Commands - Check wallet balances and view payment history
- Production Ready - Supports custom RPC endpoints, multiple networks (mainnet/devnet/testnet)
π Works with:
- Node.js: Express, Fastify, Koa, NestJS, Hono
- Python: Flask, Django, FastAPI
- Go: Gin, Echo, Chi
- Ruby: Rails, Sinatra
- Java: Spring Boot
- PHP: Laravel, Symfony
- Any other REST API framework
The proxy doesn't care about your backend's implementation - it just checks payments and forwards valid requests.
π¦ CLI Commands
spl402-proxy init- Interactive configuration wizardspl402-proxy serve- Start payment proxy serverspl402-proxy discover- Find SPL-402 enabled servicesspl402-proxy balance- Check wallet balances (SOL + tokens)spl402-proxy history- View payment transaction history
π§ Technical Details
- Built on SPL-402 standard v2.0.6
- Express-based proxy with http-proxy-middleware
- Full TypeScript support with type definitions
- Handles GET, POST, PUT, PATCH, DELETE requests
- Forwards all headers including API keys for two-layer security
π Getting Started
npm install -g spl402-proxy
spl402-proxy init
spl402-proxy serve