diff --git a/_includes/devdoc/dash-core/rpcs/quick-reference.md b/_includes/devdoc/dash-core/rpcs/quick-reference.md index 7031b475..b331274d 100644 --- a/_includes/devdoc/dash-core/rpcs/quick-reference.md +++ b/_includes/devdoc/dash-core/rpcs/quick-reference.md @@ -312,7 +312,7 @@ default. * [ListReceivedByAddress][rpc listreceivedbyaddress]: {{summary_listReceivedByAddress}} {{DASH_UPDATED0_13_0}} * [ListSinceBlock][rpc listsinceblock]: {{summary_listSinceBlock}} {{DASH_UPDATED0_14_0}} * [ListTransactions][rpc listtransactions]: {{summary_listTransactions}} {{DASH_UPDATED0_14_0}} -* [ListUnspent][rpc listunspent]: {{summary_listUnspent}} {{DASH_UPDATED0_14_0}} +* [ListUnspent][rpc listunspent]: {{summary_listUnspent}} {{DASH_UPDATED0_14_1}} * [LockUnspent][rpc lockunspent]: {{summary_lockUnspent}} * [Move][rpc move]: {{summary_move}} {{DEPRECATED}} * [RemovePrunedFunds][rpc removeprunedfunds]: {{summary_removePrunedFunds}} {{DASH_NEW0_12_3}} {{NEW0_13_0}} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/listunspent.md b/_includes/devdoc/dash-core/rpcs/rpcs/listunspent.md index 73d41300..44ea258a 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/listunspent.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/listunspent.md @@ -64,6 +64,15 @@ the *spendable* field in the results described below. {% enditemplate %} +*Parameter #5---query options* + +{% itemplate ntpd1 %} +- n: "Query Options" + t: "json" + p: "Optional" + d: "JSON with query options. Available options:
- `minimumAmount`: Minimum value of each UTXO in DASH
- `maximumAmount`: Maximum value of each UTXO in DASH
- `maximumCount`: Maximum number of UTXOs
- `minimumSumAmount`: Minimum sum value of all UTXOs in DASH" + +{% enditemplate %} *Result---the list of unspent outputs* @@ -140,7 +149,7 @@ the *spendable* field in the results described below. {% enditemplate %} -*Example from Dash Core 0.14.0* +*Example from Dash Core 0.14.1* Get all outputs confirmed at least 6 times for a particular address: @@ -172,6 +181,42 @@ Result: ] {% endhighlight %} +Get all outputs for a particular address that have at least 1 confirmation and a maximum value of 10: + +{% highlight bash %} +listunspent 1 9999999 "[\"yQqTPAw1Nk8iFDeDXqe5dQ7A9xD6LVUStD\"]" true "{\"maximumAmount\":\"10\"}" + +dash-cli -testnet listunspent 1 9999999 ''' + [ + "yQqTPAw1Nk8iFDeDXqe5dQ7A9xD6LVUStD" + ] + ''' true ''' + { + "maximumAmount": "10" + } + ''' +{% endhighlight %} + +Result: + +{% highlight json %} +[ + { + "txid": "42cd5150fd1179b5a194e034685d524e6d5d38703ac794d236495923a29addc5", + "vout": 1, + "address": "yQqTPAw1Nk8iFDeDXqe5dQ7A9xD6LVUStD", + "account": "", + "scriptPubKey": "76a914318d6d7e26e07a142a425a32ea917a30147d6c9788ac", + "amount": 5.00000000, + "confirmations": 100, + "spendable": true, + "solvable": true, + "safe": true, + "ps_rounds": -2 + } +] +{% endhighlight %} + *See also* * [ListTransactions][rpc listtransactions]: {{summary_listTransactions}} diff --git a/_includes/layout/base/rpc-table.html b/_includes/layout/base/rpc-table.html index 9c309954..2c920fd5 100644 --- a/_includes/layout/base/rpc-table.html +++ b/_includes/layout/base/rpc-table.html @@ -785,7 +785,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Wallet ListUnspent Y - Updated in 0.14.0 + Updated in 0.14.1 Wallet