{"repo":"crypto-priest/x402-solana-rust","free":true,"listed":false,"github":"https://github.com/crypto-priest/x402-solana-rust","clone":"git clone https://github.com/crypto-priest/x402-solana-rust.git","description":"Production-ready Rust server template for building HTTP APIs with x402 payment integration on Solana. Accept USDC payments for API access. Includes Axum, Actix and Rocket templates.","language":"Rust","stars":13,"topics":["actix-web","api","axum","payments","rust","solana","usdc","web3","x402"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"x402 Solana Payment Server A production-ready Rust template for building HTTP APIs with x402 payment integration on Solana. Accept USDC payments for API access using the x402 protocol. Overview This template provides a complete server implementation supporting the x402 payment protocol for Solana. It enables you to create paid API endpoints where users pay with USDC to access protected content. Key Features: - Pure Rust - Type-safe, high-performance, memory-safe - x402 Protocol - Standard HTTP 402 payment protocol for Solana - Multi-Framework - Choose Axum, Actix, or Rocket - Production Ready - CORS, logging, error handling included - Zero Config - Works out of the box with sensible defaults - Testing UI - Web-based frontend for testing payments Payment Flow Quick Start Installation Create a new project with one command: This will: - Create a new project directory - Install all dependencies - Run interactive setup wizard - Configure your chosen framework (Axum/Actix/Rocket) Configuration Copy environment template and add your Solana wallet: Run Start the server: Server starts on http://localhost:3000 Test Web UI (Recommended): cURL: API Endpoints Endpoint Method Description Payment Required ---------- -------- ------------- ------------------ /api/health GET Health check and server info No /api/free GET Free access endpoint No /api/paid GET Protected content Yes (USDC) Configuration Reference Required - RECEIVER WALLET ADDRESS - Your Solana wallet to receive payments Optional","default_branch":null,"files":null,"tree":[],"storefront":"/r/crypto-priest","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/crypto-priest/x402-solana-rust/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}