Client Path

Pay for APIs

Your Progress0/8 lessons complete
1

Understanding the x402 Flow (Client Perspective)

Learn the request → 402 → payment → retry cycle

10 min
Start

Your First x402 Request

Make a successful payment-gated API call using @x402/fetch

15 minComplete Lesson 1 to unlock

Handling Payment Challenges

Understand and handle errors (insufficient funds, failures, timeouts)

12 minComplete Lesson 2 to unlock

Real-World Client Implementation

Build a complete client app with best practices

20 minComplete Lesson 3 to unlock

Multi-Network Clients (EVM + Solana)

Register multiple payment schemes and handle different blockchains

12 minComplete Lesson 4 to unlock

Lifecycle Hooks & Observability

Add logging, metrics, and custom validation with payment hooks

15 minComplete Lesson 5 to unlock

Debugging x402 Clients

Troubleshoot common errors and inspect payment flows

15 minComplete Lesson 6 to unlock

Advanced Error Handling & Retry Logic

Implement resilient clients with exponential backoff and circuit breakers

18 minComplete Lesson 7 to unlock