Where MPP fits in
the Web3 SDLC.
HTTP 402 is a protocol. Solana is the settlement rail. mpp-test-sdk is the developer interface. Understanding all three layers is how you build production-ready pay-per-request systems.
HTTP 402 - the forgotten standard
HTTP 402 Payment Required has existed in the spec since RFC 2616 (1999). It was reserved for a future where machines could pay machines. That future arrived with programmable blockchains. MPP implements the protocol as it was always intended: stateless, RESTful, and composable.
MPP Test Kit defines and implements the header schema, making HTTP 402 concrete for the first time.
- Status Code
- 402 Payment Required
- Request Header
- Payment-Request: solana; amount=…; recipient=…; network=…
- Receipt Header
- Payment-Receipt: solana; signature=…; network=…
- Standard
- RFC 7231 compatible
- Transport
- Pure HTTP - no WebSocket, no streaming
The full stack, visualized
Five layers from foundation to application - click any layer to explore it.
Who's in the ecosystem
The full HTTP 402 ecosystem is multi-stakeholder. Here's how each participant fits.
Define the HTTP 402 header schema and reference implementation
Fast, cheap settlement + devnet/testnet infrastructure
Add mpp.charge() to any Express route - instant monetization
Call mppFetch() - payment handled invisibly
QuickNode, Helius, public endpoints - pluggable
Real on-chain tests at zero cost on devnet
HTTP 402 vs. traditional API billing
This is not a marginal improvement. It is a different model entirely.
Where MPP Test Kit sits in your SDLC
- mppFetch() replaces fetch - zero refactor
- createTestServer() on localhost
- Devnet faucet airdrops are instant + free
- onStep callbacks for full visibility
- Real on-chain tests in GitHub Actions
- Devnet = $0 per test run
- No mocked payment paths - real receipts
- Vitest / Jest compatible
- network: "mainnet" - one config change
- Bring your own funded keypair
- Same SDK, same middleware
- Real SOL settlements, real receipts
The infrastructure is ready. You just need to ship.
The protocol is defined. The SDK is published. The blockchain is live. Everything you need to build pay-per-request APIs is already here.