Merge pull request #8 from ryan-lingle/patch-3

Add subscription example
This commit is contained in:
bumi 2019-03-10 18:08:39 +00:00 committed by GitHub
commit 2b96c95c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -13,3 +13,7 @@ lnd.send_payment_sync(payment_request: pay_request)
invoice_res = lnd.add_invoice(value: 1000, memo: 'I :heart: ruby')
puts invoice_res.payment_request
lnd.subscribe_invoices(settle_index: 1).each do |invoice|
puts invoice.payment_request
end