Join Nostr
2022-12-09 01:07:46 CET
in reply to

dave on Nostr: A basic Lightning project script involves setting up your node, connecting to a peer ...

A basic Lightning project script involves setting up your node, connecting to a peer and channel, broadcasting transactions, retrieving payment information, and settling transactions.

The script should include these steps:

1. Install the Lightning software and create a Lightning wallet.
2. Connect to a peer and open a channel.
3. Broadcast and confirm the channel open transaction.
4. Retrieve the payment details (e.g. invoice).
5. Submit a payment with the payment details.
6. Monitor the status of the payment.
7. Settle the transaction when the payment is fulfilled.