The Rust MPP SDK ( mpp-test-sdk on crates.io) implements the full Solana HTTP 402 payment flow in pure async Rust. No Solana SDK dependency. Ed25519 signing, base58, and compact-u16 transaction encoding β all from scratch with ed25519-dalek and num-bigint . Framework-agnostic server middleware via a ChargeResult enum.
Why Rust and HTTP 402?
Rust is increasingly the language of high-performance APIs, WebAssembly services, and systems that need both speed and correctness. If you're building something in Rust that serves data β and you want to charge per request without billing infrastructure β HTTP 402 on Solana is the natural fit.
The challenge is that most HTTP 402 / Solana tooling targets TypeScript or Python.β¦