| imageDescription | Native SOL and SPL token payments on Solana for one-time and session-based billing |
|---|
The Solana payment method enables MPP payments on Solana using native SOL, SPL tokens, and Token-2022 assets. Solana supports two intents: charge for one-time payments and session for escrowed, pay-as-you-go billing.
The reference implementation is provided by @solana/mpp, which extends mppx with Solana-native client and server handlers.
:::code-group
npm install @solana/mpp mppx @solana/kitpnpm add @solana/mpp mppx @solana/kit:::
Solana enables several useful capabilities for MPP:
- Split payouts and richer settlement flows through multiple instructions per transaction
- Fast finality for low-latency charge flows
- Cheap transactions for micropayments and fee-sponsored UX
- Native fee payer support so servers can sponsor network fees
- Token flexibility across SOL, SPL, and Token-2022 assets
- Delegated signer options including Ed25519 and passkey-friendly secp256r1 flows
| Charge | Session | |
|---|---|---|
| Pattern | One-time payment per request | Escrow once, pay incrementally with vouchers |
| Latency overhead | One transaction or confirmed signature per request | Low after open; vouchers are off-chain |
| Throughput | Best for discrete purchases | Best for high-frequency metered usage |
| Best for | Paid API calls, downloads, fixed-price purchases | LLM APIs, streaming, repeated calls |
| Settlement | Immediate on-chain transfer | Escrow on-chain, settle accepted usage later |