awesome-x402
๐ Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.
https://github.com/xpaysh/awesome-x402
Last synced: 5 days ago
JSON representation
-
Awesome Lists
-
Issue Guidelines
- Awesome Crypto - Cryptography resources.
- Awesome Ethereum - Ethereum development.
- sindresorhus/awesome - The awesome list of awesome lists.
- Awesome Web3 - Web3 development.
- Awesome Blockchain - Blockchain resources.
-
-
๐ Related Protocols
-
Payment Protocols
- Lightning Network - Bitcoin Layer 2 micropayments.
- Request Network - Payment request protocol.
- Stellar Anchors - Cross-border payments.
-
Web Standards
- ERC-20 - Token standard.
-
Historical Reference
- HTTP 402 Proposal - Original RFC (1999).
- 21.co Micropayments - Early Bitcoin micropayment attempt (2015).
-
AI & Agent Protocols
- Agent Protocol (AP2) - Agent communication standard.
- OpenAI Function Calling - Tool use API.
-
-
๐ Security & Audits
-
Bug Bounty Programs
- Coinbase Bug Bounty - Report x402 vulnerabilities for rewards up to $50,000.
-
Security Best Practices
- x402 Security Checklist - Production deployment security requirements.
- Payment Verification Guide - Proper payment verification implementation.
- Key Management - Secure private key handling for automated payments.
-
Known Vulnerabilities & Mitigations
- CVE Database - Known vulnerabilities and patches.
- Replay Attack Prevention - Nonce and deadline handling.
-
Security Monitoring
- Rate Limiting Tools - Prevent abuse and ensure service availability.
-
-
๐จ Tools & Utilities
-
CLI Tools
- Foundry - Smart contract development toolkit.
-
-
๐ ๏ธ SDKs & Client Libraries
-
๐ Protocol Documentation
- EIP-3009 TransferWithAuthorization - Gasless transfer standard used by x402.
- Verification & Settlement - Payment validation process.
- How x402 Works - Complete payment flow explanation with diagrams.
- HTTP 402 Status Code - The long-dormant HTTP status.
-
๐ญ Production Implementations
-
High-Volume Production Deployments
- Cloudflare Workers - Edge computing platform with x402 integration serving global distributed payment verification at scale across 300+ data centers.
- AIsa - Leading x402 payment processor with **10.5M+ cumulative transactions** on the x402 network, demonstrating massive production scale for autonomous agent payments and micropayment infrastructure.
- Bitget - Major cryptocurrency exchange integrating x402 for seamless payment flows, enabling instant settlements and gasless transfers for trading operations.
-
-
๐ Ecosystem Projects
-
DeFi & Finance
- Chainlink VRF - Random NFT minting with payment demo.
- Cred Protocol - Decentralized credit scoring.
-
Infrastructure
- thirdweb Nebula - AI agent transaction framework.
- Coinbase Developer Platform - Hosted facilitator service with enterprise-grade reliability and instant settlement.
-
Tools & Services
- Apexti Toolbelt - 1,500+ Web3 APIs via x402 MCP servers.
- BuffetPay - Smart x402 payments with guardrails.
- AIAgentStore.ai - Insights for founders with x402 payments.
-
Developer Tools
- Boosty Labs - AI agents buying real-time insights.
-
-
๐๏ธ Facilitators
-
Self-Hosted Facilitators
- Running Your Own Facilitator - Setup guide.
-
Rust
- Cloudflare x402 - Edge computing facilitator on Base/Ethereum with deferred settlement.
- BNB Chain Pieverse - BNB Chain facilitator with instant settlement.
-
-
๐ค AI Agent Integration
-
Agent-to-Agent (A2A)
- Google A2A x402 Extension - Agent commerce protocol.
-
Model Context Protocol (MCP)
- MCP Server Setup Guide - Complete installation instructions.
-
Agent Frameworks
- NEAR AI - Cross-chain agent settlements.
- Phidata Agents - Multi-modal agents with x402.
-
-
๐ก Example Applications
-
Full-Stack Applications
- Video Paywall - Premium content access tutorial.
- Weather API Service - Simple paid API endpoint.
- Farcaster Mini App - Social app integration.
-
API Examples
- REST API with Auth Pricing - SIWE + dynamic pricing.
-
Client Examples
- Axios Client - Automatic payment handling.
- Fetch Client - Fetch API wrapper demo.
-
-
๐ฏ Quick Start - Become an x402 Champion
- 5-Minute Quickstart - Accept your first payment.
-
๐ Official Resources
- Protocol Specifications - Detailed technical specifications.
- Payment Schemes - Different payment flow types.
- EVM Implementation - Ethereum Virtual Machine specifics.
- x402 Foundation - Protocol foundation website with overview and documentation.
-
๐ Quickstart Guides
- 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.
-
โ๏ธ Protocol Implementations
-
TypeScript/JavaScript
- x402-typescript - Complete TypeScript implementation.
- x402-express - Express.js middleware example.
-
Python
- x402 - Python SDK on PyPI.
-
Rust
- x402-reqwest - Reqwest HTTP client wrapper.
-
-
๐ง Server Frameworks & Middleware
-
Node.js/TypeScript
- x402-next - App Router middleware.
- Next.js route protection - Complete app example.
- Mainnet production example - Base mainnet ready.
- Browser wallet example - React + Hono full-stack.
-
Python
- FastAPI example - Complete implementation.
-
-
๐งช Testing & Development
-
Testnets
- Base Sepolia Testnet - Primary testnet.
- Base Sepolia USDC Faucet - Get test USDC.
- Base Sepolia Bridge - Bridge test ETH.
-
-
๐ฅ Videos & Talks
-
Official Videos
- Introducing x402 - Coinbase - Protocol announcement.
- x402 Deep Dive - Technical explanation.
- Building with x402 - Developer walkthrough.
-
Conference Talks
- ETHDenver 2025 - x402 Workshop - Hands-on workshop.
- DevCon Bangkok - HTTP 402 - Protocol evolution.
-
Tutorial Videos
- Building Your First x402 API - 20-minute tutorial.
- AI Agents with x402 - Agent integration.
- From Stripe to x402 - Migration guide.
-
-
๐ Articles & Blog Posts
-
Official Blog Posts
- Introducing x402 - Coinbase announcement.
-
Technical Deep Dives
- EIP-3009 Explained - Gasless transfers.
- x402 vs Traditional Payments - Comparison study.
-
Use Case Articles
- Micropayments Finally Work - Economic analysis.
- Building the Agent Economy - Market opportunity.
-
News Coverage
- x402 Sees 10,000% Growth - Yahoo Finance.
-
-
๐ฅ Community
-
Official Channels
- x402 Foundation Discord - Official community server.
- Twitter @x402org - Official updates and announcements.
-
Developer Communities
- x402 Builders Telegram - Active developer chat.
- Reddit r/x402 - Community forum and discussions.
- Farcaster x402 Channel - Decentralized social.
- Dev.to #x402 - Tutorials and articles.
-
Events & Meetups
- Weekly Office Hours - Live Q&A with core team.
- Local Meetups - In-person gatherings.
-
Newsletters
- Agent Economy Digest - AI agent payments news.
-
-
Star History
-
Issue Guidelines
- ![Star History Chart - history.com/#xpaysh/awesome-x402&Date)
-
-
๐ Ecosystem Market Data
-
Analytics Dashboards
- Dune Analytics x402 - Comprehensive on-chain metrics and visualizations including real-time transaction volumes, chain-by-chain analytics, facilitator comparison data, and revenue/fee metrics.
- x402scan Explorer - Blockchain explorer for x402 payments with transaction search and verification, payment requirement inspection, and settlement status tracking.
- CoinGecko x402 Category - Token tracking and market data featuring $180M+ tracked market cap, price charts, trading volumes, and ecosystem token listings.
-
-
๐ Migration Guides
-
From Traditional Payment Processors
- From Stripe to x402 - Migrate subscription and one-time payments from Stripe to x402 for crypto-native payments with instant settlement. Includes API comparison, webhook migration strategies, customer migration approaches, and zero-fee cost analysis.
-
From Authentication to Payments
- From API Keys to x402 Payments - Replace API key-based access control with payment-per-use models. Includes authentication middleware replacement, rate limiting evolution, revenue model transformation, and pay-per-request implementation.
-
From Subscription to Usage-Based
- From Subscription to Pay-Per-Use - Transform monthly subscriptions into granular pay-as-you-go pricing. Includes SaaS model evolution, pricing psychology and conversion, customer acquisition benefits, and revenue optimization strategies.
-
Programming Languages
Categories
๐ฅ Community
9
๐ Related Protocols
8
๐ฅ Videos & Talks
8
๐ Ecosystem Projects
8
๐ Security & Audits
7
๐ Articles & Blog Posts
6
๐ก Example Applications
6
Awesome Lists
5
๐ง Server Frameworks & Middleware
5
๐ Protocol Documentation
4
โ๏ธ Protocol Implementations
4
๐ค AI Agent Integration
4
๐ Official Resources
4
๐ญ Production Implementations
3
๐ Ecosystem Market Data
3
๐งช Testing & Development
3
๐๏ธ Facilitators
3
๐ Quickstart Guides
3
๐ ๏ธ SDKs & Client Libraries
3
๐ Migration Guides
3
๐จ Tools & Utilities
1
๐ฏ Quick Start - Become an x402 Champion
1
Star History
1
Sub Categories
Issue Guidelines
6
Rust
4
Node.js/TypeScript
4
Developer Communities
4
High-Volume Production Deployments
3
Official Videos
3
Security Best Practices
3
Full-Stack Applications
3
Tutorial Videos
3
Payment Protocols
3
Testnets
3
Analytics Dashboards
3
Tools & Services
3
Technical Deep Dives
2
Events & Meetups
2
TypeScript/JavaScript
2
Historical Reference
2
AI & Agent Protocols
2
Official Channels
2
Known Vulnerabilities & Mitigations
2
Use Case Articles
2
Agent Frameworks
2
Conference Talks
2
Python
2
Client Examples
2
Infrastructure
2
JavaScript/TypeScript
2
DeFi & Finance
2
Official Blog Posts
1
Newsletters
1
Security Monitoring
1
From Subscription to Usage-Based
1
Model Context Protocol (MCP)
1
Agent-to-Agent (A2A)
1
Self-Hosted Facilitators
1
API Examples
1
From Traditional Payment Processors
1
From Authentication to Payments
1
News Coverage
1
Web Standards
1
Bug Bounty Programs
1
Developer Tools
1
CLI Tools
1
Keywords
awesome
5
awesome-list
5
ethereum
4
blockchain
3
crypto
1
cryptography
1
encryption
1
list
1
lists
1
resources
1
unicorns
1
smart-contracts
1
solidity
1
web3
1
bitcoin
1
bulletproofs
1
digital-currency
1
dpos
1
eos
1
eosio
1
fabric
1
iota
1
ipfs
1
mastering-bitcoin
1
mastering-ethereum
1
monero
1
pbft
1
pos
1
pow
1
white-paper
1