diff --git a/lib/commands.py b/lib/commands.py index 00f60b53..da6c4bae 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -95,11 +95,12 @@ register_command('signmessage', 2,-1, False, True, True, 'Sign a mess register_command('unfreeze', 1, 1, False, True, False, 'Unfreeze the funds at one of your wallet\'s address', 'unfreeze
') register_command('validateaddress', 1, 1, False, False, False, 'Check that the address is valid', 'validateaddress
') register_command('verifymessage', 3,-1, False, False, False, 'Verifies a signature', verifymessage_syntax) -register_command('encrypt', 2,-1, False, False, False, 'encrypt a message with pubkey') -register_command('decrypt', 2,-1, False, False, False, 'decrypt a message with privkey') +register_command('encrypt', 2,-1, False, False, False, 'encrypt a message with pubkey','encrypt ') +register_command('decrypt', 2,-1, False, False, False, 'decrypt a message with privkey','decrypt ') register_command('daemon', 1, 1, True, False, False, 'start/stop daemon') -register_command('getproof', 1, 1, True, False, False, 'start/stop daemon') +register_command('getproof', 1, 1, True, False, False, 'get merkle proof', 'getproof
') +register_command('getunspentaddress', 2, 2, True, False, False, 'get the address of an unspent','getunspentaddress ') @@ -152,6 +153,10 @@ class Commands: return self.network.synchronous_get([ ('blockchain.address.listunspent',[addr]) ])[0] + def getunspentaddress(self, txid, num): + return self.network.synchronous_get([ ('blockchain.utxo.get_address',[txid, num]) ])[0] + + def createrawtransaction(self, inputs, outputs): # convert to own format for i in inputs: