β‘ The Ultimate x402 Resource Hub - Everything you need to build internet-native payments using HTTP 402. Perfect for AI agents, APIs, and micropayments. Build paywalls, monetize services, and enable autonomous agent payments with crypto/USDC. Zero fees, 2-second settlement.
- π― Quick Start - Become an x402 Champion
- π Official Resources
- π Protocol Documentation
- π Quickstart Guides
- βοΈ Protocol Implementations
- π οΈ SDKs & Client Libraries
- π§ Server Frameworks & Middleware
- ποΈ Facilitators
- π‘ Example Applications
- π¨ Use Cases & Patterns
- π€ AI Agent Integration
- π¨ Tools & Utilities
- π§ͺ Testing & Development
- π Tutorials & Learning Resources
- π₯ Videos & Talks
- π Articles & Blog Posts
- π₯ Community
- π Ecosystem Projects
- π Related Protocols
- π€ Contributing
- Awesome Lists
- Star History
The x402 protocol enables instant Blockchain payments over HTTP using the 402 "Payment Required" status code. This is your complete guide to mastering x402 and building the future of agent payments.
π Start building in 5 minutes | π 500K+ transactions/week | π° $180M+ ecosystem | β‘ 2-second settlement
New to x402? Follow this path to mastery:
- 5-Minute Quickstart - Accept your first payment.
- Choose Your Stack - Find your language/framework.
- Copy an Example - Working code you can run immediately.
- Join the Community - Get help from other builders.
For AI Agents: Start with MCP Integration to enable Claude/other agents to make autonomous payments.
Core resources from the x402 protocol maintainers.
- x402 Protocol Specification - Official open-source protocol implementation by Coinbase.
- x402 Foundation - Protocol foundation website with overview and documentation.
- x402 Whitepaper - Technical deep dive into protocol architecture.
- Coinbase Developer Platform Docs - Complete implementation guide and API reference.
- Protocol Specifications - Detailed technical specifications.
- Payment Schemes - Different payment flow types.
- EVM Implementation - Ethereum Virtual Machine specifics.
Essential documentation for understanding and implementing x402.
- How x402 Works - Complete payment flow explanation with diagrams.
- Payment Requirements Schema - JSON structure for payment requests.
- Payment Payload Format - Client payment submission format.
- Verification & Settlement - Payment validation process.
- EIP-3009 TransferWithAuthorization - Gasless transfer standard used by x402.
- HTTP 402 Status Code - The long-dormant HTTP status.
Get started with x402 in minutes.
- 5-Minute Quickstart for Sellers - Accept your first payment.
- Buyer/Client Setup - Make automated payments.
- One-Line Integration - Add payment middleware in a single line of code.
- Base Sepolia Testnet Setup - Get test USDC and start testing.
- Production Deployment Checklist - Go live on Base mainnet.
Official and community implementations of the x402 protocol.
- x402-typescript β Official - Complete TypeScript implementation.
- Core protocol types and utilities
- Payment verification and settlement logic
- Multi-chain support (Base, Base Sepolia, Ethereum, Solana)
- x402-express - Express.js middleware example.
- x402 β Official - Python SDK on PyPI.
- FastAPI middleware integration
- Requests session with auto-payments
- Payment requirement generation
- x402-rs β Community - Production-grade Rust implementation.
- Axum middleware
- Reqwest client wrapper
- Self-hostable facilitator
- Multi-chain support
- x402-axum - Axum web framework integration.
- x402-reqwest - Reqwest HTTP client wrapper.
- x402-go - Go implementation (community-maintained).
- x402-ruby - Ruby gem (community-maintained).
- x402-java - Java SDK (community-maintained).
- x402-php - PHP library (community-maintained).
Client libraries for making x402 payments.
HTTP Clients
- x402-got - Got HTTP client integration.
Wallet Integration
- x402 httpx adapter - Async HTTP client with x402.
- alloy - High-performance Ethereum library.
Server-side integrations for accepting x402 payments.
Next.js
- x402-next - App Router middleware.
- Next.js route protection - Complete app example.
- Mainnet production example - Base mainnet ready.
Hono
- Browser wallet example - React + Hono full-stack.
FastAPI
- FastAPI example - Complete implementation.
Axum
- Axum server example - Full implementation.
Payment verification and settlement services.
Hosted Facilitators:
- Coinbase CDP - Official hosted facilitator on Base/Base Sepolia with instant settlement.
- Cloudflare x402 - Edge computing facilitator on Base/Ethereum with deferred settlement.
- BNB Chain Pieverse - BNB Chain facilitator with instant settlement.
- x402-rs Facilitator - Production-grade Rust facilitator.
- Docker deployment support
- Multi-chain configuration
- REST API endpoints (/verify, /settle)
- Running Your Own Facilitator - Setup guide.
Full working examples and templates.
- Weather API Service - Simple paid API endpoint.
- Next.js App - Complete web application.
- Video Paywall - Premium content access tutorial.
- Browser Wallet Template - React + Hono + Session management.
- Farcaster Mini App - Social app integration.
- REST API with Auth Pricing - SIWE + dynamic pricing.
- AI Chat API - Per-message payment model.
- File Storage API - Pay-per-download pattern.
- Axios Client - Automatic payment handling.
- Fetch Client - Fetch API wrapper demo.
- Python Requests - Python client example.
Real-world use cases and implementation patterns.
AI & Autonomous Agents
- Context purchasing (Anthropic MCP)
- Tool marketplace access
- Real-time data feeds for trading bots
- Compute resource allocation
Content & Media
- Per-article paywalls
- Video streaming (pay-per-view)
- Music licensing per play
- Premium podcast episodes
Data & APIs
- Weather data services
- Financial market data
- Geolocation services
- Real-time sports scores
Infrastructure
- Cloud storage (pay-per-GB)
- Compute time (pay-per-second)
- CDN bandwidth
- API rate limiting bypass
Micropayments (< $0.10)
- API calls ($0.001 - $0.01)
- Content views ($0.01 - $0.10)
- Data queries ($0.001 - $0.05)
Metered Billing
- Token-based LLM APIs
- Time-based service access
- Usage-based pricing tiers
Session-Based
- Aggregate usage into single payment
- Deferred settlement patterns
- Batch processing
- Dynamic Pricing Strategy - SIWE authentication with conditional pricing.
- Rate Limiting - Payment-based rate limit bypass.
- Caching Strategy - Cache payment requirements.
- Error Handling - Graceful payment failures.
- Refund Patterns - Handling refunds and disputes.
Enable AI agents to make autonomous payments.
- Anthropic MCP Integration - Official Claude integration.
- x402 MCP Server - Claude Desktop ready server.
- MCP Server Setup Guide - Complete installation instructions.
- Embedded Wallet MCP - Electron-based wallet for MCP.
- LangChain x402 Tool - LangChain integration.
- AutoGPT Plugin - Autonomous task payments.
- NEAR AI - Cross-chain agent settlements.
- Phidata Agents - Multi-modal agents with x402.
- Google A2A x402 Extension - Agent commerce protocol.
- Python and TypeScript implementations
- Payment-required, payment-submitted, payment-completed flow
- Multi-agent payment orchestration
- Autonomous Trading Bot - Pays for market data.
- Content Scraper Agent - Pays per scrape.
- Research Assistant - Purchases academic papers.
Development tools and utilities for x402.
- x402-cli - Command-line testing and deployment.
- x402-inspect - Debug payment flows.
- Foundry - Smart contract development toolkit.
- x402 DevTools - Browser extension for debugging.
- Payment Inspector - View payment requirements.
- x402 Dashboard - Revenue analytics dashboard.
- Dune Analytics - On-chain metrics and visualizations.
- x402 Prometheus Exporter - Metrics exporter.
- Payment Requirement Builder - Visual payment requirement creator.
- Price Calculator - Calculate optimal pricing.
Tools and resources for testing x402 implementations.
- Base Sepolia Testnet - Primary testnet.
- Base Sepolia USDC Faucet - Get test USDC.
- Base Sepolia Bridge - Bridge test ETH.
- x402-test-suite - Integration test framework.
- Mock Facilitator - Local development facilitator.
- Payment Simulator - Simulate payment flows.
- x402 Postman Collection - API testing collection.
- Insomnia Workspace - REST client workspace.
- GitHub Actions Workflow - Automated testing pipeline.
- GitLab CI Example - GitLab CI/CD configuration.
Guides and tutorials for learning x402.
- Your First x402 API (5 min) - Official quickstart.
- Understanding Payment Flows - Visual explanation.
- Building a Paid Weather API - Step-by-step tutorial.
- Client Setup Guide - Making payments.
- Multi-Chain Support - Deploy on multiple chains.
- Authentication + Dynamic Pricing - SIWE integration.
- Rate Limiting Strategies - Implement rate limits.
- Session Management - Aggregate payments.
- Building a Custom Facilitator - Self-host verification.
- Gas Optimization Techniques - EIP-3009 deep dive.
- High-Throughput APIs - Handle 1000+ req/sec.
- Security Hardening - Production security.
- Error Handling Patterns - Handle edge cases.
- Retry Logic - Implement retries.
- Caching Strategies - Optimize performance.
Video content about x402.
- Introducing x402 - Coinbase - Protocol announcement.
- x402 Deep Dive - Technical explanation.
- Building with x402 - Developer walkthrough.
- a16z State of Crypto 2025 - Future of agent payments.
- ETHDenver 2025 - x402 Workshop - Hands-on workshop.
- DevCon Bangkok - HTTP 402 - Protocol evolution.
- Building Your First x402 API - 20-minute tutorial.
- AI Agents with x402 - Agent integration.
- From Stripe to x402 - Migration guide.
Written content about x402.
- Introducing x402 - Coinbase announcement.
- Cloudflare x402 Foundation - Partnership announcement.
- x402 Technical Whitepaper - Complete specification.
- How x402 Works - Technical explanation.
- EIP-3009 Explained - Gasless transfers.
- x402 vs Traditional Payments - Comparison study.
- AI Agents Need x402 - Future of autonomous payments.
- Micropayments Finally Work - Economic analysis.
- Building the Agent Economy - Market opportunity.
- x402 Sees 10,000% Growth - Yahoo Finance.
- Cloudflare Joins x402 - TechCrunch coverage.
- The HTTP 402 Awakens - Ars Technica feature.
Connect with the x402 community.
- x402 Foundation Discord - Official community server.
- GitHub Discussions - Technical Q&A and RFCs.
- Twitter @x402org - Official updates and announcements.
- x402 Builders Telegram - Active developer chat.
- Reddit r/x402 - Community forum and discussions.
- Dev.to #x402 - Tutorials and articles.
- Farcaster x402 Channel - Decentralized social.
- x402 Hackathons - Upcoming hackathons and prizes.
- Weekly Office Hours - Live Q&A with core team.
- Local Meetups - In-person gatherings.
- x402 Weekly - Weekly protocol updates.
- Agent Economy Digest - AI agent payments news.
Projects building with or extending x402.
- Coinbase CDP - Hosted facilitator service.
- Cloudflare x402 - Edge payment processing.
- thirdweb Nebula - AI agent transaction framework.
- Apexti Toolbelt - 1,500+ Web3 APIs via x402 MCP servers.
- Zyte.com - Web scraping with x402 payments.
- BuffetPay - Smart x402 payments with guardrails.
- Cal.com - Automated scheduling with payments.
- Cred Protocol - Decentralized credit scoring.
- Chainlink VRF - Random NFT minting with payment demo.
- Dune Analytics x402 - On-chain metrics dashboard.
- CoinGecko x402 Tokens - Token category ($180M market).
- NEAR AI - Cross-chain agent settlements.
- Boosty Labs - AI agents buying real-time insights.
Adjacent protocols and standards.
- Lightning Network - Bitcoin Layer 2 micropayments.
- Stellar Anchors - Cross-border payments.
- Request Network - Payment request protocol.
- HTTP Status Codes - Complete reference.
- EIP-3009 - TransferWithAuthorization.
- ERC-20 - Token standard.
- Model Context Protocol (MCP) - Anthropic's context standard.
- Agent Protocol (AP2) - Agent communication standard.
- OpenAI Function Calling - Tool use API.
- 21.co Micropayments - Early Bitcoin micropayment attempt (2015).
- HTTP 402 Proposal - Original RFC (1999).
Contributions welcome! Please read the contribution guidelines first.
- Search existing resources to avoid duplicates
- Make an individual pull request for each suggestion
- Use the following format:
[Resource Name](link) - Description. - New categories or improvements to the existing structure are welcome
- Check your spelling and grammar
- Ensure your text editor removes trailing whitespace
β Encouraged:
- New implementations in different languages
- Production use cases and case studies
- Tutorials and educational content
- Tools and utilities that extend x402
- Integration examples with popular frameworks
- Documentation improvements
β Please Avoid:
- Spam or promotional links
- Duplicate resources
- Incomplete or broken projects
- Resources not directly related to x402
- Title: Use format
Add [Resource Name]orUpdate [Section] - Description: Briefly explain what you're adding and why it's useful
- Testing: Ensure any code examples work as expected
- Links: Verify all links are accessible and correct
- Use issue templates when available
- Search existing issues before creating new ones
- Provide context and examples for bug reports
- Be respectful and constructive
Looking for more awesome lists?
- sindresorhus/awesome - The awesome list of awesome lists.
- Awesome Blockchain - Blockchain resources.
- Awesome Web3 - Web3 development.
- Awesome Ethereum - Ethereum development.
- Awesome Crypto - Cryptography resources.
π Built with β€οΈ by xPay
Helping the agentic community get paid and pay safely!
If this helped you become an x402 champion, please β star the repo and share it!
Official x402 Website β’
Protocol Repo β’
Documentation β’
Discord β’
Twitter