Add subscription example

pull/8/head
ryan-lingle 4 years ago committed by GitHub
parent 37f240da7f
commit a6a6a31f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples.rb

@ -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

Loading…
Cancel
Save