Class: Tapyrus::Node::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/tapyrus/node/cli.rb

Instance Method Summary collapse

Instance Method Details

#createwallet(wallet_id) ⇒ Object



52
53
54
# File 'lib/tapyrus/node/cli.rb', line 52

def createwallet(wallet_id)
  request("createwallet", wallet_id)
end

#decoderawtransaction(hexstring) ⇒ Object



34
35
36
# File 'lib/tapyrus/node/cli.rb', line 34

def decoderawtransaction(hexstring)
  request("decoderawtransaction", hexstring)
end

#decodescript(hexstring) ⇒ Object



39
40
41
# File 'lib/tapyrus/node/cli.rb', line 39

def decodescript(hexstring)
  request("decodescript", hexstring)
end

#encryptwallet(passhphrase) ⇒ Object



74
75
76
# File 'lib/tapyrus/node/cli.rb', line 74

def encryptwallet(passhphrase)
  request("encryptwallet", passhphrase)
end

#getblockchaininfoObject



11
12
13
# File 'lib/tapyrus/node/cli.rb', line 11

def getblockchaininfo
  request("getblockchaininfo")
end

#getblockheader(hash, verbose = true) ⇒ Object



22
23
24
25
# File 'lib/tapyrus/node/cli.rb', line 22

def getblockheader(hash, verbose = true)
  verbose = verbose.is_a?(String) ? (verbose == "true") : verbose
  request("getblockheader", hash, verbose)
end

#getnewaddress(account) ⇒ Object



79
80
81
# File 'lib/tapyrus/node/cli.rb', line 79

def getnewaddress()
  request("getnewaddress", )
end

#getpeerinfoObject



28
29
30
# File 'lib/tapyrus/node/cli.rb', line 28

def getpeerinfo
  request("getpeerinfo")
end

#getwalletinfoObject



63
64
65
# File 'lib/tapyrus/node/cli.rb', line 63

def getwalletinfo
  request("getwalletinfo")
end

#listaccountsObject



68
69
70
# File 'lib/tapyrus/node/cli.rb', line 68

def listaccounts
  request("listaccounts")
end

#listwalletsObject



58
59
60
# File 'lib/tapyrus/node/cli.rb', line 58

def listwallets
  request("listwallets")
end

#sendrawtransaction(hex_tx) ⇒ Object



46
47
48
# File 'lib/tapyrus/node/cli.rb', line 46

def sendrawtransaction(hex_tx)
  request("sendrawtransaction", hex_tx)
end

#stopObject



16
17
18
# File 'lib/tapyrus/node/cli.rb', line 16

def stop
  request("stop")
end