diff --git a/CHANGELOG.md b/CHANGELOG.md index e549a43fb..fa8c2cb74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 * diff --git a/docs/cli.md b/docs/cli.md index 6f0111753..bc902c836 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -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 diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 439763d7a..5158cc5d5 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -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