470 B
470 B
Example: Calling a Paid Route Using z402-client
This example shows how a client application interacts with a z402-protected server.
- Uses the
z402-clientlibrary - Automatically detects
HTTP 402 Payment Required - Builds, signs, and resends the payment transaction
- Demonstrates basic
GETrequest flow
This is useful for:
- Server-to-server calls
- Backend workers
- Command-line payment automation
- Testing wallet signing logic
Run:
npm start