rename command to utxo_list

This commit is contained in:
Alex Grintsvayg 2017-11-02 07:14:26 -04:00
parent 12d88159a1
commit cc61cc6b17
3 changed files with 30 additions and 4 deletions

View file

@ -26,7 +26,7 @@ at anytime.
*
### Added
* Added `wallet_list_unspent` command
* Added `utxo_list` command to list unspent transaction outputs
* Added redundant API server for currency conversion
*

View file

@ -969,6 +969,32 @@ Returns:
(dict) JSON formatted transaction
```
## utxo_list
```text
List unspent transaction outputs
Usage:
utxo_list
Returns:
(list) List of unspent transaction outputs (UTXOs)
[
{
"address": (str) the output address
"amount": (float) unspent amount
"height": (int) block height
"is_claim": (bool) is the tx a claim
"is_coinbase": (bool) is the tx a coinbase tx
"is_support": (bool) is the tx a support
"is_update": (bool) is the tx an update
"nout": (int) nout of the output
"txid": (str) txid of the output
},
...
]
```
## version
```text

View file

@ -2405,15 +2405,15 @@ class Daemon(AuthJSONRPCServer):
defer.returnValue(tx)
@defer.inlineCallbacks
def jsonrpc_wallet_list_unspent(self):
def jsonrpc_utxo_list(self):
"""
List unspent transaction outputs
Usage:
wallet_prefill_addresses
utxo_list
Returns:
(list) List of UTXOs
(list) List of unspent transaction outputs (UTXOs)
[
{
"address": (str) the output address