|
| 1 | +# Lightning payments using OpenNode |
| 2 | + |
| 3 | +In this workshop we will be creating a public message board where every message is paid for using Lightning. |
| 4 | + |
| 5 | +Check out what we will end up with: [Demo Message Board](https://opennode-workshop-final--ruigomes.repl.co/) |
| 6 | + |
| 7 | +## Working on Bitcoin's Testnet |
| 8 | + |
| 9 | +This workshop runs on the Lightning Network Testnet. |
| 10 | +To easily pay for testnet Lightning invoices, check out the [HTLC.me wallet](https://htlc.me). |
| 11 | + |
| 12 | +Please be warned that API keys generated on a regular OpenNode account will *not* work on testnet. |
| 13 | + |
| 14 | +You have to create a specific account on OpenNode Dev - https://dev.opennode.co. |
| 15 | +If you can see the "Dev Environment" tag next to the OpenNode logo you're in the right place! |
| 16 | + |
| 17 | +> Hint: If you'd like to run this app on mainnet instead, create a regular OpenNode account at https://opennode.co/signup and change the API base URL from https://**dev-api**.opennode.co to https://**api**.opennode.co |
| 18 | +
|
| 19 | +## Online IDE |
| 20 | + |
| 21 | +You can start working on this project immediately using Repl.it. |
| 22 | + |
| 23 | +The project is hosted at [https://repl.it/@ruigomes/opennode-workshop](https://repl.it/@ruigomes/opennode-workshop). |
| 24 | + |
| 25 | +Fork it and start playing around with it. |
| 26 | + |
| 27 | +## Got stuck? |
| 28 | + |
| 29 | +If you get stuck at any point during the workshop, feel free to browse this repository branches to quickly get up to speed. |
| 30 | + |
| 31 | +Here are the solutions for each step of the workshop: |
| 32 | + |
| 33 | +- [Creating invoices ⚡️](../../tree/02-creating-invoices) |
| 34 | +- [Checking for payments 💵](../../tree/03-checking-payments) |
| 35 | +- [Validating callbacks 🕵️♂️](../../tree/04-validating-callbacks) |
| 36 | +- [Spicing it up 🌶](../../tree/05-spice-it-up) |
| 37 | + |
| 38 | +Pro-tip: Use the "Compare" feature on GitHub to quickly identify what has been changed in each step! |
| 39 | + |
| 40 | +## Other questions? |
| 41 | + |
| 42 | +Feel free to contact us using our live chat at https://opennode.co or via email at [email protected]! |
0 commit comments