mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 10:16:15 +00:00
parent
9a803fdf48
commit
e3c34fef4c
9 changed files with 79 additions and 1 deletions
63
_includes/devdoc/dash-core/rpcs/rpcs/listaddressbalances.md
Normal file
63
_includes/devdoc/dash-core/rpcs/rpcs/listaddressbalances.md
Normal file
|
@ -0,0 +1,63 @@
|
|||
{% 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/listaddressbalances.md" %}
|
||||
|
||||
##### ListAddressBalances
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_listAddressBalances="lists addresses of this wallet and their balances" %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `listaddressbalances` RPC {{summary_listAddressBalances}}
|
||||
|
||||
*Parameter #1---Minimum Amount*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Minimum Amount"
|
||||
t: "numeric (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Minimum balance in DASH an address should have to be shown in the list (default=0)"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---an object containing the addresses and their balances*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An object containing key/value pairs corresponding to the addresses with balances > the minimum amount. May be empty"
|
||||
|
||||
- n: "→<br>Address/Amount"
|
||||
t: "string (base58):<br>number (DASH)"
|
||||
p: "Optional<br>(1 or more)"
|
||||
d: "A key/value pair with a base58check-encoded string containing the address as the key, and an amount of DASH as the value"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.3*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet listaddressbalances 25
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
{% highlight json %}
|
||||
{
|
||||
"yMQtQkcMBXrAZyqTGZeg7tQHzmbypGEP4w": 299.99990000,
|
||||
"yRyfgrHm4f5A8GGvqpqTFvbCrCQHJm1L4V": 99.13570000,
|
||||
"ybePwhPzUbiWzFhkgxPgP6iHnTLTyFH6sU": 123.45600000,
|
||||
"ycCdPQnjNEVRgrQY8j6mxEx9h7oaQpo5Ge": 500.00000000
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also:*
|
||||
|
||||
* [ListAddressGroupings][rpc listaddressgroupings]: {{summary_listAddressGroupings}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -91,5 +91,6 @@ Result (edited to only three results):
|
|||
|
||||
* [GetAddressesByAccount][rpc getaddressesbyaccount]: {{summary_getAddressesByAccount}}
|
||||
* [GetTransaction][rpc gettransaction]: {{summary_getTransaction}}
|
||||
* [ListAddressBalances][rpc listaddressbalances]: {{summary_listAddressBalances}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue