Class: Node::OnChain

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

Instance Method Summary collapse

Instance Method Details

#list_chain_txnsObject



113
114
115
# File 'lib/node.rb', line 113

def list_chain_txns
  stub.get_transactions(Lnrpc::GetTransactionsRequest.new())
end

#send_coins(addr, amt) ⇒ Object



117
118
119
# File 'lib/node.rb', line 117

def send_coins(addr, amt)
  stub.send_coins(Lnrpc::SendCoinsRequest.new(addr: addr, amount: amt))
end

#send_many(array_addrs) ⇒ Object



121
122
123
# File 'lib/node.rb', line 121

def send_many(array_addrs)
  stub.send_many(Lnrpc::SendManyRequest.new(AddrToAmount: array_addrs, target_conf: 6, sat_per_byte:  200))
end