class Node::Payments

Public Instance Methods

add_invoice(value, memo="") click to toggle source
# File lib/node.rb, line 29
def add_invoice(value, memo="")
  stub.add_invoice(Lnrpc::Invoice.new(value: value, memo: memo))
end
decode_pay_req(pay_req) click to toggle source
# File lib/node.rb, line 19
def decode_pay_req(pay_req)
  stub.decode_pay_req(Lnrpc::PayReqString.new(pay_req: pay_req))
end
list_invoices() click to toggle source
# File lib/node.rb, line 7
def list_invoices
  response = stub.list_invoices(Lnrpc::ListInvoiceRequest.new())
  response.invoices
end
list_payments() click to toggle source
# File lib/node.rb, line 12
def list_payments
  response = stub.list_payments(Lnrpc::ListPaymentRequest.new())
  response.payments
end
lookup_invoice(payment_hash) click to toggle source
# File lib/node.rb, line 23
def lookup_invoice(payment_hash)
  stub.lookup_invoice(Lnrpc::PaymentHash.new(payment_hash))
end
send_payment(payment_request) click to toggle source
# File lib/node.rb, line 33
def send_payment(payment_request)
  r = stub.send_payment_sync(Lnrpc::SendRequest.new(payment_request: payment_request))
end