rename command: getutxoaddress
This commit is contained in:
@@ -100,7 +100,7 @@ register_command('encrypt', 2,-1, False, False, False, 'encrypt a m
|
|||||||
register_command('decrypt', 2,-1, False, False, False, 'decrypt a message with privkey','decrypt <privkey> <message>')
|
register_command('decrypt', 2,-1, False, False, False, 'decrypt a message with privkey','decrypt <privkey> <message>')
|
||||||
register_command('daemon', 1, 1, True, False, False, 'start/stop daemon')
|
register_command('daemon', 1, 1, True, False, False, 'start/stop daemon')
|
||||||
register_command('getproof', 1, 1, True, False, False, 'get merkle proof', 'getproof <address>')
|
register_command('getproof', 1, 1, True, False, False, 'get merkle proof', 'getproof <address>')
|
||||||
register_command('getunspentaddress', 2, 2, True, False, False, 'get the address of an unspent','getunspentaddress <txid> <pos>')
|
register_command('getutxoaddress', 2, 2, True, False, False, 'get the address of an unspent transaction output','getutxoaddress <txid> <pos>')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -153,8 +153,10 @@ class Commands:
|
|||||||
return self.network.synchronous_get([ ('blockchain.address.listunspent',[addr]) ])[0]
|
return self.network.synchronous_get([ ('blockchain.address.listunspent',[addr]) ])[0]
|
||||||
|
|
||||||
|
|
||||||
def getunspentaddress(self, txid, num):
|
def getutxoaddress(self, txid, num):
|
||||||
return self.network.synchronous_get([ ('blockchain.utxo.get_address',[txid, num]) ])[0]
|
r = self.network.synchronous_get([ ('blockchain.utxo.get_address',[txid, num]) ])
|
||||||
|
if r:
|
||||||
|
return {'address':r[0] }
|
||||||
|
|
||||||
|
|
||||||
def createrawtransaction(self, inputs, outputs):
|
def createrawtransaction(self, inputs, outputs):
|
||||||
|
|||||||
Reference in New Issue
Block a user