RPC - Add new listwallets RPC

This commit is contained in:
thephez 2019-08-21 15:17:11 -04:00
parent 0e6f88e5c4
commit 1de2b924a9
8 changed files with 65 additions and 0 deletions

View file

@ -489,6 +489,8 @@ DIP8:
'`listtransactions` RPC': rpc listtransactions
'`listunspent`': rpc listunspent
'`listunspent` RPC': rpc listunspent
'`listwallets`': rpc listwallets
'`listwallets` RPC': rpc listwallets
'`lockunspent`': rpc lockunspent
'`lockunspent` RPC': rpc lockunspent
'`masternode`': rpc masternode

View file

@ -266,6 +266,7 @@ devsearches:
- 'ListSinceBlock': "/en/developer-reference#listsinceblock"
- 'ListTransactions': "/en/developer-reference#listtransactions"
- 'ListUnspent': "/en/developer-reference#listunspent"
- 'ListWallets': "/en/developer-reference#listwallets"
- 'LockUnspent': "/en/developer-reference#lockunspent"
- 'Masternode': "/en/developer-reference#masternode"
- 'MasternodeBroadcast': "/en/developer-reference#masternodebroadcast"

View file

@ -315,6 +315,7 @@ default.
* [ListSinceBlock][rpc listsinceblock]: {{summary_listSinceBlock}} {{DASH_UPDATED0_14_1}}
* [ListTransactions][rpc listtransactions]: {{summary_listTransactions}} {{DASH_UPDATED0_14_0}}
* [ListUnspent][rpc listunspent]: {{summary_listUnspent}} {{DASH_UPDATED0_14_1}}
* [ListWallets][rpc listwallets]: {{summary_listWallets}} {{DASH_NEW0_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}}

View file

@ -0,0 +1,51 @@
{% comment %}
This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT.
{% endcomment %}
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/listwallets.md" %}
<!--__-->
##### ListWallets
{% include helpers/subhead-links.md %}
{% assign summary_listWallets="returns a list of currently loaded wallets." %}
{% autocrossref %}
The `listwallets` RPC {{summary_listWallets}}
For full information on the wallet, use the `getwalletinfo` RPC.
*Parameters: none*
*Result*
{% itemplate ntpd1 %}
- n: "`result`"
t: "array"
p: "Required<br>(exactly 1)"
d: "An array of strings containing a list of currently loaded wallet files"
- n: "→<br>Wallet"
t: "string"
p: "Required<br>(0 or more)"
d: "The name of a wallet file"
{% enditemplate %}
*Example from Dash Core 0.14.1*
{% highlight bash %}
dash-cli -testnet listwallets
{% endhighlight %}
Result:
{% highlight json %}
[
"wallet.dat"
]
{% endhighlight %}
*See also: none*
{% endautocrossref %}

View file

@ -101,6 +101,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
{% assign summary_listSinceBlock="gets all transactions affecting the wallet which have occurred since a particular block, plus the header hash of a block at a particular depth." %}
{% assign summary_listTransactions="returns the most recent transactions that affect the wallet." %}
{% assign summary_listUnspent="returns an array of unspent transaction outputs belonging to this wallet." %}
{% assign summary_listWallets="returns a list of currently loaded wallets." %}
{% assign summary_lockUnspent="temporarily locks or unlocks specified transaction outputs. A locked transaction output will not be chosen by automatic coin selection when spending dash. Locks are stored in memory only, so nodes start with zero locked outputs and the locked output list is always cleared when a node stops or fails." %}
{% assign summary_masternode="provides a set of commands for managing masternodes and displaying information about them." %}
{% assign summary_masternodeBroadcast="was removed in Dash Core 0.14.0." %}

View file

@ -793,6 +793,12 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-baqh">Y</td>
<td class="tg-baqh">Updated in 0.14.1</td>
</tr>
<tr>
<td class="tg-yw4l">Wallet</td>
<td class="tg-yw4l"><a href="#listwallets">ListWallets</a></td>
<td class="tg-baqh">Y</td>
<td class="tg-baqh">Added in 0.14.1</td>
</tr>
<tr>
<td class="tg-b7b8">Wallet</td>
<td class="tg-b7b8"><a href="#lockunspent">LockUnspent</a></td>

View file

@ -169,6 +169,7 @@ http://opensource.org/licenses/MIT.
[rpc listsinceblock]: /en/developer-reference#listsinceblock
[rpc listtransactions]: /en/developer-reference#listtransactions
[rpc listunspent]: /en/developer-reference#listunspent
[rpc listwallets]: /en/developer-reference#listwallets
[rpc lockunspent]: /en/developer-reference#lockunspent
[rpc masternode]: /en/developer-reference#masternode
[rpc masternodebroadcast]: /en/developer-reference#masternodebroadcast

View file

@ -272,6 +272,8 @@ untrusted source.
{% include devdoc/dash-core/rpcs/rpcs/listunspent.md %}
{% include devdoc/dash-core/rpcs/rpcs/listwallets.md %}
{% include devdoc/dash-core/rpcs/rpcs/lockunspent.md %}
{% include devdoc/dash-core/rpcs/rpcs/masternode.md %}