Class: Node

Inherits:
Object
  • Object
show all
Includes:
Lnd
Defined in:
lib/node.rb

Defined Under Namespace

Classes: Channels, OnChain, Payments, Peers, Wallet

Instance Method Summary collapse

Instance Method Details

#add_invoice(amount) ⇒ Object



184
185
186
# File 'lib/node.rb', line 184

def add_invoice(amount)
  response = stub.add_invoice(Lnrpc::Invoice.new(value: amount))
end

#get_infoObject



180
181
182
# File 'lib/node.rb', line 180

def get_info
  stub.get_info(Lnrpc::GetInfoRequest.new())
end