TypeScript Client Quickstart
beginner
Get started making payments with TypeScript in 5 minutes
typescriptclient
Quickstart
TypeScript Server Quickstart
beginner
Accept payments for your API in 5 minutes
typescriptserver
Quickstart
Fetch API Client Example
beginner
Use x402 with the native Fetch API
typescriptfetchclient
Example
Axios Client Example
beginner
Use x402 with Axios HTTP client
typescriptaxiosclient
Example
Advanced Client Patterns
advanced
Lifecycle hooks, network preferences, and custom validation
typescriptclienthooksnetwork-preferences
Example
Custom Client Implementation
advanced
Manual implementation using only @x402/core
typescriptclient
Example
MCP Server Example
intermediate
Build an MCP server that makes paid API requests
typescriptclientmcp
Example
Express Server Example
beginner
Protect Express.js routes with x402 middleware
typescriptexpressserver
Example
Hono Server Example
beginner
Protect Hono routes with x402 middleware
typescripthonoserver
Example
Advanced Server Patterns
advanced
Lifecycle hooks, dynamic pricing, custom tokens, and Bazaar discovery
typescriptserverhooksdynamic-pricing+2 more
Example
Custom Server Implementation
advanced
Manual implementation using only @x402/core
typescriptserver
Example
TypeScript Facilitator
intermediate
Run your own payment facilitator with /verify and /settle endpoints
typescriptfacilitator
Example
Next.js Fullstack App
intermediate
Full Next.js app with protected routes
typescriptnextjsserver
Example
Farcaster Mini App
intermediate
Farcaster Mini App with x402 payments
typescriptserverfarcaster
Example
Go HTTP Client Example
beginner
Use x402 with Go's standard HTTP client
gohttpclient
Example
Go Advanced Client
advanced
Advanced client patterns with hooks, error recovery, and multi-network priority
goclienthookserror-recovery+1 more
Example
Go Custom Client
advanced
Manual client implementation
goclient
Example
Gin Server Example
beginner
Protect Gin routes with x402 middleware
goginserver
Example
Go Advanced Server
advanced
Advanced server patterns with hooks, dynamic pricing, custom tokens, and Bazaar discovery
goserverhooksdynamic-pricing+2 more
Example
Go Custom Server
advanced
Manual server implementation
goserver
Example
Go Facilitator
intermediate
Run a payment facilitator in Go
gofacilitator
Example
HTTP 402 Protocol
beginner
How x402 uses the HTTP 402 status code
Concept
Client & Server Architecture
beginner
How clients and servers interact
Concept
Facilitator Role
intermediate
What facilitators do and how they work
Concept
Wallet Management
beginner
How wallets work in x402
Concept
Network & Token Support
beginner
Supported blockchain networks and tokens
Concept
Bazaar Discovery Layer
intermediate
Discover x402-enabled services
bazaar-discovery
Concept
Building MCP Servers with x402
intermediate
Create Model Context Protocol servers that make payments
mcp
Guide
Migration Guide: v1 to v2
intermediate
Upgrade from x402 v1 to v2
Guide
x402 Specification v2
advanced
Technical specification for x402 v2
Spec
x402 Specification v1
advanced
Technical specification for x402 v1 (legacy)
Spec
Exact Scheme - EVM
advanced
Exact payment scheme for EVM chains
Spec
Exact Scheme - SVM
advanced
Exact payment scheme for Solana
Spec
Exact Scheme - Sui
advanced
Exact payment scheme for Sui
Spec
@x402/core Package
intermediate
Core TypeScript package for x402
typescript
Reference
@x402/axios Package
beginner
Axios client integration
typescriptaxiosclient
Reference
@x402/fetch Package
beginner
Fetch API integration
typescriptfetchclient
Reference
@x402/express Package
beginner
Express.js middleware
typescriptexpressserver
Reference
@x402/hono Package
beginner
Hono middleware
typescripthonoserver
Reference
@x402/next Package
beginner
Next.js middleware
typescriptnextjsserver
Reference
Go Package Documentation
beginner
Go SDK documentation
go
Reference
Python Package Documentation
beginner
Python SDK documentation
python
Reference
Java Package Documentation
beginner
Java SDK documentation
java
Reference
Welcome to x402
beginner
Introduction to x402 and overview of the open payment standard
Concept
Frequently Asked Questions
beginner
Common questions about x402, facilitators, networks, and troubleshooting
Reference
Go Client Implementation Guide
intermediate
Comprehensive guide to implementing x402 clients in Go
goclient
Guide
Go Server Implementation Guide
intermediate
Comprehensive guide to implementing x402 servers in Go
goserver
Guide
Go Facilitator Implementation Guide
advanced
Comprehensive guide to implementing x402 facilitators in Go
gofacilitator
Guide
Go Extensions Overview
intermediate
Go SDK extensions and middleware
go
Reference
Go Payment Mechanisms
intermediate
Payment mechanism implementations in Go
go
Reference
Go EVM Mechanism
advanced
EVM payment mechanism for Go SDK
go
Reference
Go SVM Mechanism
advanced
Solana payment mechanism for Go SDK
go
Reference
Go EVM Exact Scheme v1
advanced
EVM exact payment scheme v1 implementation
go
Reference
Go SVM Exact Scheme v1
advanced
Solana exact payment scheme v1 implementation
go
Reference
Go Gin Framework Integration
intermediate
Gin framework integration guide
goginserver
Reference
Specifications Overview
intermediate
Overview of x402 technical specifications
Spec
Exact Scheme Overview
advanced
General overview of the exact payment scheme
Spec
HTTP Transport v1
advanced
HTTP transport protocol specification v1
Spec
MCP Transport v1
advanced
Model Context Protocol transport specification v1
mcp
Spec
Agent-to-Agent Transport v1
advanced
Agent-to-Agent communication protocol specification v1
ai-agents
Spec
HTTP Transport v2
advanced
HTTP transport protocol specification v2
Spec
MCP Transport v2
advanced
Model Context Protocol transport specification v2
mcp
Spec
Agent-to-Agent Transport v2
advanced
Agent-to-Agent communication protocol specification v2
ai-agents
Spec
TypeScript Extensions
intermediate
TypeScript SDK extensions and middleware
typescript
Reference
TypeScript EVM Mechanism
advanced
EVM payment mechanism for TypeScript SDK
typescript
Reference
TypeScript SVM Mechanism
advanced
Solana payment mechanism for TypeScript SDK
typescript
Reference
@x402/paywall Package
intermediate
Paywall utilities for TypeScript HTTP servers
typescriptserver
Reference
TypeScript Demo Site
intermediate
Demo website showcasing x402 integration
typescript
Guide
TypeScript v2 Changelog
intermediate
Version 2 changelog and migration notes
typescript
Reference
Welcome to x402
beginner
Introduction to the x402 payment protocol
Concept
How x402 Works
beginner
Complete payment flow from request to settlement
Concept
Networks & Token Support
intermediate
Supported blockchain networks and tokens
Reference
Building Miniapps with x402
intermediate
Build miniapps with x402 payments using our template
ai-agents
Guide
x402 Facilitator API
advanced
Facilitator API overview and endpoints
facilitator
Reference
Verify Payment Endpoint
advanced
Verify x402 payments with specific schemes and networks
facilitator
Reference
Settle Payment Endpoint
advanced
Settle x402 payments on-chain
facilitator
Reference
Get Supported Schemes Endpoint
intermediate
Get supported payment schemes and networks
facilitator
Reference