Paid ATM app ID provisioning via Lightning invoice #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Allow ATM operators to purchase an app ID by paying a Lightning invoice, removing the need for admin API access during provisioning.
Motivation
Currently, creating an ATM app ID requires:
ADMIN_TOKEN)POST /api/admin/app/addmanually or via the provisioning scriptThis is fine for self-hosted setups, but doesn't scale for third-party ATM operators who want to connect their machines to an existing Lightning.Pub instance. We need a self-service flow.
Proposed Flow
POST /api/atm/purchaseAddAppapp_id, connection credentials, and any other info needed for.envAPI Sketch
Configuration
New LP config options:
ATM_PURCHASE_PRICE_SATS— cost per app ID (default: 10,000)ATM_PURCHASE_ENABLED— toggle (default: false)Considerations
Context
This came up while setting up the Douro ATM. The current provisioning script (
provision-atm.sh) works but requires SSH + admin token access. A paid self-service flow would enable a marketplace model where LP operators can sell ATM connectivity.