node-xsh
Version:
nodejs SHIELD client
60 lines (58 loc) • 1.33 kB
JavaScript
const commands = module.exports.commands = [
'addMultiSigAddress'
, 'backupWallet'
, 'createRawTransaction'
, 'decodeRawTransaction'
, 'dumpPrivKey'
, 'encryptWallet'
, 'getAccount'
, 'getAccountAddress'
, 'getAddressesByAccount'
, 'getBalance'
, 'getBlock'
, 'getBlockCount'
, 'getBlockHash'
, 'getBlockCount'
, 'getConnectionCount'
, 'getDifficulty'
, 'getGenerate'
, 'getHashesPerSec'
, 'getHashesPerSec'
, 'getInfo'
, 'getMemoryPool'
, 'getMemoryPool'
, 'getMiningInfo'
, 'getNewAddress'
, 'getRawTransaction'
, 'getReceivedByAccount'
, 'getReceivedByAddress'
, 'getTransaction'
, 'getWork'
, 'help'
, 'importPrivKey'
, 'importAddress'
, 'keyPoolRefill'
, 'listAccounts'
, 'listReceivedByAccount'
, 'listReceivedByAddress'
, 'listSinceBlock'
, 'listTransactions'
, 'listUnspent'
, 'move'
, 'sendFrom'
, 'sendMany'
, 'sendRawTransaction'
, 'sendToAddress'
, 'setAccount'
, 'setGenerate'
, 'setTxFee'
, 'signMessage'
, 'signRawTransaction'
, 'stop'
, 'validateAddress'
, 'verifyMessage'
, 'walletLock'
, 'walletPassphrase'
, 'walletPassphraseChange'
];
module.exports.isCommand = command => commands.some(cmd => cmd.toLowerCase() === command.toLowerCase());