Skip to content

spl402 proxy v1.0.2

Latest

Choose a tag to compare

@astrohackerx astrohackerx released this 03 Dec 09:41
· 1 commit to main since this release

πŸš€ 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 wizard
  • spl402-proxy serve - Start payment proxy server
  • spl402-proxy discover - Find SPL-402 enabled services
  • spl402-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