Background
Lens is designed to be consumed by external developers — but the README does not show how to make a paid request with the x402 header. Without examples, developers do not know how to structure the payment or what response to expect.
What to build
A "Usage Examples" section in the README with curl, fetch, and a Node.js example showing the full x402 payment flow.
Key files
README.md — add examples here
Suggested execution
git checkout -b docs/usage-examples
- curl example showing the 402 response (no payment header)
- curl example with
X-PAYMENT header showing 200 + price JSON
- Node.js example using
@x402/client for auto-payment
GET /status unauthenticated health check
- GraphQL price query example
Example commit message:
docs: add curl, fetch, and Node.js usage examples with x402 payment flow
Acceptance criteria
Drips Wave · Complexity: Trivial · 100 points
Comment below to request assignment. PR must include Closes #[this issue].
Background
Lens is designed to be consumed by external developers — but the README does not show how to make a paid request with the x402 header. Without examples, developers do not know how to structure the payment or what response to expect.
What to build
A "Usage Examples" section in the README with curl, fetch, and a Node.js example showing the full x402 payment flow.
Key files
README.md— add examples hereSuggested execution
X-PAYMENTheader showing 200 + price JSON@x402/clientfor auto-paymentGET /statusunauthenticated health checkExample commit message:
docs: add curl, fetch, and Node.js usage examples with x402 payment flowAcceptance criteria
@x402/clientNode.js example shown