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

@ -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 %}