From cc61cc6b17f88e25fc53e7e02c875e441a17e592 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 2 Nov 2017 07:14:26 -0400 Subject: [PATCH] rename command to utxo_list --- CHANGELOG.md | 2 +- docs/cli.md | 26 ++++++++++++++++++++++++++ lbrynet/daemon/Daemon.py | 6 +++--- 3 files changed, 30 insertions(+), 4 deletions(-) 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