node-experiencepoints
Version:
93 lines (90 loc) • 1.85 kB
JavaScript
var commands = module.exports.commands = [
'addmultisigaddress'
, 'addnode'
, 'addredeemscript'
, 'backupwallet'
, 'checkwallet'
, 'createmultisig'
, 'createrawtransaction'
, 'decoderawtransaction'
, 'decodescript'
, 'dumpblock'
, 'dumpblockbynumber'
, 'dumpprivkey'
, 'dumpwallet'
, 'encryptwallet'
, 'getaccount'
, 'getaccountaddress'
, 'getaddednodeinfo'
, 'getaddressesbyaccount'
, 'getaddrmaninfo '
, 'getbalance'
, 'getbestblockhash'
, 'getblock'
, 'getblockbynumber'
, 'getblockcount'
, 'getblockhash'
, 'getblocktemplate'
, 'getcheckpoint'
, 'getconnectioncount'
, 'getdifficulty'
, 'getinfo'
, 'getmininginfo'
, 'getnettotals'
, 'getnewaddress'
, 'getpeerinfo'
, 'getrawmempool'
, 'getrawtransaction'
, 'getreceivedbyaccount'
, 'getreceivedbyaddress'
, 'getsubsidy'
, 'gettransaction'
, 'getwork'
, 'getworkex'
, 'help'
, 'importprivkey'
, 'importaddress'
, 'importwallet'
, 'keypoolrefill'
, 'keypoolreset'
, 'listaccounts'
, 'listaddressgroupings'
, 'listmintings'
, 'listreceivedbyaccount'
, 'listreceivedbyaddress'
, 'listsinceblock'
, 'listtransactions'
, 'listunspent'
, 'makekeypair'
, 'mergecoins'
, 'move'
, 'ntptime'
, 'removeaddress'
, 'repairwallet'
, 'resendtx'
, 'reservebalance'
, 'scaninput'
, 'sendalert'
, 'sendfrom'
, 'sendmany'
, 'sendrawtransaction'
, 'sendtoaddress'
, 'setaccount'
, 'settxfee'
, 'signmessage'
, 'signrawtransaction'
, 'stop'
, 'validateaddress'
, 'verifymessage'
, 'walletlock'
, 'walletpassphrase'
, 'walletpassphrasechange'
]
module.exports.isCommand = function(command) {
command = command.toLowerCase()
for (var i=0, len=commands.length; i<len; i++) {
if (commands[i].toLowerCase() === command) {
return true
}
}
}