Free x402 tool
x402 Quickstart Configurator
Choose a stack and network, then generate an educational starter sequence that shows the install step, payment requirements, protected route, and first unpaid request check.
Express on Base Sepolia
Generated starter
How to use the output
- Run the generated install command in a throwaway test project.
- Set the receive address and facilitator URL from environment or deployment config.
- Curl the route without payment first and confirm it returns HTTP 402.
- Use the official buyer quickstart or SDK examples for the paid retry.
FAQ
Tool FAQ
Can I paste this directly into production?
No. Treat the generated output as a tutorial starter. Recheck package names, SDK signatures, facilitator URLs, and network support against the official docs before production use.
Which network should I choose first?
Choose a testnet first, such as Base Sepolia for an EVM path or Solana devnet for an SVM path. Move to mainnet only after the unpaid, paid, invalid-payment, and failure paths are tested.
Does the configurator store my address or route?
No. Inputs are used only by client-side JavaScript to render the snippet in your browser.
Sources used
- x402 docs: Quickstart for Sellers
Official seller setup, package installation, testnet defaults, and payment middleware examples.
- x402 docs: Networks and Token Support
Documents CAIP-2 network identifiers and supported network namespaces.
- x402 docs: HTTP 402
Explains how x402 uses HTTP 402 to communicate payment requirements.
- x402 Foundation GitHub repository
Open-source SDKs, examples, and the typical x402 request/payment/settlement flow.
- x402docs.com reference tools
Reference-style x402 tools for building 402 responses, pricing, and decoding payment headers.