Merchants need idempotent invoices, confirmation policies, and reliable callbacks. This project is the on-chain cousin of a Lightning POS.
Complete Step 1 // Required reading in the study plan above, then continue here. This closes Projects.
Step 2 — Goal
API endpoints to:
- Create invoice (amount, expiry, address)
- Query invoice status
- Register webhook URL
- Mark paid after N confirmations
Return a BIP-21 URI with the invoice details.
Loading diagram…
Done when: You can explain idempotency for “create invoice” retries.
Step 3 — Milestones
| Phase | Ship |
|---|---|
| Milestone A | Create + get invoice with unique address / BIP-21 |
| Milestone B | Detect payment and confirmation threshold on regtest |
| Milestone C | Signed webhook + under/over-payment policy documented |