mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 10:16:15 +00:00
RPC - Add query_options to listunspent
This commit is contained in:
parent
e0dc221d8a
commit
158a24640e
3 changed files with 48 additions and 3 deletions
|
@ -312,7 +312,7 @@ default.
|
||||||
* [ListReceivedByAddress][rpc listreceivedbyaddress]: {{summary_listReceivedByAddress}} {{DASH_UPDATED0_13_0}}
|
* [ListReceivedByAddress][rpc listreceivedbyaddress]: {{summary_listReceivedByAddress}} {{DASH_UPDATED0_13_0}}
|
||||||
* [ListSinceBlock][rpc listsinceblock]: {{summary_listSinceBlock}} {{DASH_UPDATED0_14_0}}
|
* [ListSinceBlock][rpc listsinceblock]: {{summary_listSinceBlock}} {{DASH_UPDATED0_14_0}}
|
||||||
* [ListTransactions][rpc listtransactions]: {{summary_listTransactions}} {{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}}
|
* [LockUnspent][rpc lockunspent]: {{summary_lockUnspent}}
|
||||||
* [Move][rpc move]: {{summary_move}} {{DEPRECATED}}
|
* [Move][rpc move]: {{summary_move}} {{DEPRECATED}}
|
||||||
* [RemovePrunedFunds][rpc removeprunedfunds]: {{summary_removePrunedFunds}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}
|
* [RemovePrunedFunds][rpc removeprunedfunds]: {{summary_removePrunedFunds}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}
|
||||||
|
|
|
@ -64,6 +64,15 @@ the *spendable* field in the results described below.
|
||||||
|
|
||||||
{% enditemplate %}
|
{% enditemplate %}
|
||||||
|
|
||||||
|
*Parameter #5---query options*
|
||||||
|
|
||||||
|
{% itemplate ntpd1 %}
|
||||||
|
- n: "Query Options"
|
||||||
|
t: "json"
|
||||||
|
p: "Optional"
|
||||||
|
d: "JSON with query options. Available options:<br> - `minimumAmount`: Minimum value of each UTXO in DASH<br> - `maximumAmount`: Maximum value of each UTXO in DASH<br> - `maximumCount`: Maximum number of UTXOs<br> - `minimumSumAmount`: Minimum sum value of all UTXOs in DASH"
|
||||||
|
|
||||||
|
{% enditemplate %}
|
||||||
|
|
||||||
*Result---the list of unspent outputs*
|
*Result---the list of unspent outputs*
|
||||||
|
|
||||||
|
@ -140,7 +149,7 @@ the *spendable* field in the results described below.
|
||||||
|
|
||||||
{% enditemplate %}
|
{% 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
|
Get all outputs confirmed at least 6 times for a particular
|
||||||
address:
|
address:
|
||||||
|
@ -172,6 +181,42 @@ Result:
|
||||||
]
|
]
|
||||||
{% endhighlight %}
|
{% 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*
|
*See also*
|
||||||
|
|
||||||
* [ListTransactions][rpc listtransactions]: {{summary_listTransactions}}
|
* [ListTransactions][rpc listtransactions]: {{summary_listTransactions}}
|
||||||
|
|
|
@ -785,7 +785,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
|
||||||
<td class="tg-yw4l">Wallet</td>
|
<td class="tg-yw4l">Wallet</td>
|
||||||
<td class="tg-yw4l"><a href="#listunspent">ListUnspent</a></td>
|
<td class="tg-yw4l"><a href="#listunspent">ListUnspent</a></td>
|
||||||
<td class="tg-baqh">Y</td>
|
<td class="tg-baqh">Y</td>
|
||||||
<td class="tg-baqh">Updated in 0.14.0</td>
|
<td class="tg-baqh">Updated in 0.14.1</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-b7b8">Wallet</td>
|
<td class="tg-b7b8">Wallet</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue