Client Guide
cURL
curl -i http://localhost:8080/api/data # receive 402 with X-PAYMENT-REQUIREMENTS # construct X-PAYMENT header and retry curl -H "X-PAYMENT: <base64>" http://localhost:8080/api/data
TypeScript
// Use x402-fetch (see x402/typescript)
// fetchWithPayment(url, { wallet }) -> Response