Power Oracle
Payments
L402 payment flow for paid Power Oracle compute access.
Paid access is enforced on POST /compute-power when paid mode is enabled.
Discovery endpoints remain read-only entry points.
Challenge Flow
If compute access requires payment, the route returns:
- HTTP
402 Payment Required - a
WWW-Authenticateheader containing the L402 challenge data
The client then:
- reads the challenge header
- extracts the token and invoice
- pays the invoice with available Lightning tooling
- retries the same request with
Authorization: L402 <token>:<preimage>
Scope
GET /movementsis a discovery endpointGET /openapi.jsonis a discovery endpointPOST /compute-poweris the route that may require payment
Current Notes
- In local development, paid access is often disabled
- When enabled, the public behavior should be treated as challenge-then-retry
- Clients should not assume one successful paid credential can be reused for unrelated compute calls