Jump to content

Hack A Lapp/Introduction to Bitcoins Lightning Network App Development/MoocIndex

From Wikiversity

--MoocIndex for MOOC @ Hack A Lapp/Introduction to Bitcoins Lightning Network App Development

lesson|C-Lightning with python

[edit | edit source]
  • furtherReading=
  1. Lightning Network
  2. https://github.com/ElementsProject/lightning/
  3. More personal video series on youtube: https://www.youtube.com/user/renepickhardt
  4. https://github.com/renepickhardt/HackALapp
  • learningGoals=
  1. install pylightning module
  2. invoke an Remote Procedure Call to your c-lightning node in a python code base
  3. create an invoice for your customer

unit|Ask your customer to pay with bitcoins lightning network by creating a lightning invoice

[edit | edit source]
  • furtherReading=
  1. https://github.com/ElementsProject/lightning/tree/master/contrib/pylightning
  2. https://github.com/ElementsProject/lightning/blob/master/doc/lightning-invoice.7.txt
  3. https://github.com/renepickhardt/HackALapp
  • learningGoals=
  1. install pylightning module
  2. invoke an Remote Procedure Call to your c-lightning node in a python code base
  3. create an invoice for your customer
  • video=File:C-lightning rpc call in python to create a Lightning Network invoice.webm

unit|Check which payments have been received

[edit | edit source]
  • furtherReading=
  1. https://github.com/ElementsProject/lightning/tree/master/contrib/pylightning
  2. https://github.com/ElementsProject/lightning/blob/master/doc/lightning-listinvoices.7.txt
  3. https://github.com/renepickhardt/HackALapp
  • learningGoals=
  1. work with the listinvoices() method
  2. understand that invoices have a status
  3. access data from a specific invoice
  • video=File:Retrieve_all_paid_invoices_via_c-lightning_rpc_call_in_python.webm

unit|Check if your customer has paid the invoice

[edit | edit source]
  • furtherReading=
  1. https://github.com/ElementsProject/lightning/tree/master/contrib/pylightning
  2. https://github.com/ElementsProject/lightning/blob/master/doc/lightning-listinvoices.7.txt
  3. https://github.com/renepickhardt/HackALapp
  • learningGoals=
  1. find a specific invoice with its payment hash
  2. Check if a specific invoice has been paid
  3. change the response to the customer depending on the payment status of the invoice
  • video=File:Check if a customer has paid the invoice.webm