forked from LBRYCommunity/lbry-sdk
rename command to utxo_list
This commit is contained in:
parent
12d88159a1
commit
cc61cc6b17
3 changed files with 30 additions and 4 deletions
|
@ -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
|
||||
*
|
||||
|
||||
|
|
26
docs/cli.md
26
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue