Python → Web3 in minutes
Transform any Python API into a monetized Web3 service with just one decorator. Accept USDC payments on Solana with sub-second settlement. Built for Django, Flask, FastAPI, Tornado, and Pyramid.
from flask import Flaskfrom x402_connector import X402# One line setup
x402 = X402(app)
# Free endpoint
@app.route('/free')def free():return 'Free data'
# Paid endpoint - one decorator!
@app.route('/premium')@require_payment('$0.01')def premium():return 'Premium data'
Enterprise-grade infrastructure designed for reliability, security, and scalability
Universal compatibility with Django, Flask, FastAPI, Tornado, and Pyramid. Same elegant API across all frameworks - write once, deploy anywhere. Zero configuration changes needed between frameworks.
Advanced Solana transaction nonces built-in for production-grade reliability. Handle high-traffic scenarios with complete replay attack protection. Ensures every payment is processed exactly once, even under heavy load.
Choose your payment facilitator: self-hosted local nodes, trusted 3rd-party services (PayAI, Corbits), or hybrid configurations. Full control over your settlement infrastructure with seamless fallback options.
180+ automated unit tests with comprehensive coverage across all frameworks and edge cases. GitHub Actions workflows for continuous integration, automated testing, and deployment. Production-ready with rigorous validation of payment flows, error handling, and security scenarios.
Experience real-time Phantom wallet integration with instant USDC micropayments. This production-ready example showcases the complete payment flow: from HTTP 402 challenge to successful payment verification and API response delivery.
Dive deeper into the technical details, explore the codebase, and join the community
Complete source code, production-ready examples, comprehensive documentation, and community contributions
In-depth technical architecture, protocol specifications, security model, and implementation details
Build the future of monetized APIs
x402-connector bridges traditional web APIs and blockchain payments, enabling developers to monetize their services with micropayments, instant settlement, and zero traditional payment infrastructure. Join us in revolutionizing how APIs generate revenue.
© 2025 x402-connector Team. Open source and free forever.