1 What is the correct syntax to create an invoice in python?
rpc_interface.invoice()
rpc_interface.create_invoice()
rpc_interface.invoice(2000, "label", "description")
rpc_interface.create_invoice(2000, "label", "description")
2 looking at the pylightning api client we find the declaration of the invoice function: def invoice(self, msatoshi, label, description, expiry=None, fallbacks=None, preimage=None ): What does that tell us?
def invoice(self, msatoshi, label, description, expiry=None, fallbacks=None, preimage=None )
3 If you don't provide the expire argument, how long will the invoice be valid?
4 you have successfully invoked the .invoice() RPC-function and stored the object to the variable called invoice. How do you print the bolt11 string?
invoice
print(invoice["bolt11"])
print(invoice)
invoice.get_bolt11()
5 initiating the rpc interface with rpc_interface = LightningRpc() we need to pass a string as an argument. Which value should the string be given?
rpc_interface = LightningRpc()