x402
Solana Facilitator
Solana is now a supported network for x402 payments. You can gate, verify, and settle Solana transactions through your own facilitator wallets — fully end-to-end.
Supported Networks
We support Solana Mainnet and Devnet. Use the following network identifiers:
- Mainnet:
solana:mainnet - Devnet:
solana:devnet
This enables you to spin up your own server wallet, prepare payment payloads, and handle verification + settlement directly on Solana (devnet or mainnet). No middle layers. No bloat.
- Solana facilitator flow — create or register a Solana server wallet, quote pricing with
/v1/payments/x402/accepts, and settle signed transactions with/v1/payments/x402/settle. - Unified verify path —
/v1/payments/x402/verifynow validates Solana payloads the same way it does for EVM, so you can reuse your middleware checks across chains. - End-to-end examples — refreshed snippets for Node environments that show the exact headers, payloads, and success envelopes you should expect in production.
First, create a server-side wallet that will act as the facilitator.
The returned address is the server-side payer for settles, so double-check that it appears in your project’s server wallet list.
Fund the wallet: Top up SOL for fees on the target cluster (devnet or mainnet-beta).
Use /v1/payments/x402/accepts to generate the payment requirements.
Keep paymentRequirements around—clients will sign against it, and the facilitator will reuse it when settling.
Once you have the signed payment payload from the client, you can verify it.
A truthy isValid means the signatures, blockhash, and amounts all check out.
Settle the transaction using your facilitator wallet.
Use waitUntil: "confirmed" if you need finality before responding to the client.
Watch your server wallet dashboard or any Solana explorer for the transaction signature the settle endpoint returns.
Let payers fetch protected resources. If the client hits the protected endpoint first, have it replay the request through /v1/payments/x402/fetch. The API will answer with the payload you need for verification and settlement.