Class: Node::Wallet

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

Instance Method Summary collapse

Instance Method Details

#new_addresssObject



161
162
163
# File 'lib/node.rb', line 161

def new_addresss
  stub.new_address(Lnrpc::NewAddressRequest.new())
end

#sign_message(msg) ⇒ Object

TODO: Double check this



170
171
172
# File 'lib/node.rb', line 170

def sign_message(msg)
  stub.sign_message(Lnrpc::SignMessageRequest.new(msg: msg))
end

#verify_message(msg, signature) ⇒ Object



174
175
176
# File 'lib/node.rb', line 174

def verify_message(msg, signature)
  stub.verify_message(Lnrpc::VerifyMessageRequest.new(msg: msg, signature: signature))
end

#wallet_balanceObject



165
166
167
# File 'lib/node.rb', line 165

def wallet_balance
  stub.wallet_balance(Lnrpc::WalletBalanceRequest.new())
end