Content - RPC - Update examples for RPCs using addlocked

This commit is contained in:
thephez 2018-10-23 10:30:49 -04:00
parent 7806d68e38
commit dd5e804658
5 changed files with 13 additions and 17 deletions

View file

@ -55,11 +55,11 @@ The `getbalance` RPC {{summary_getBalance}}
{% enditemplate %} {% enditemplate %}
*Examples from Dash Core 0.12.2* *Examples from Dash Core 0.12.4*
Get the balance for the main ("") account, including transactions with Get the balance for the main ("") account, including transactions with
at least five confirmations and those spent to watch-only addresses in at least five confirmations and those spent to watch-only addresses in
that account. Do not add the InstantSend confirmations (5) for locked transactions. that account. Do not include InstantSend locked transactions.
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getbalance "" 3 false true dash-cli -testnet getbalance "" 3 false true
@ -73,7 +73,7 @@ Result:
Get the balance for the main ("") account, including transactions with Get the balance for the main ("") account, including transactions with
at least one confirmation and those spent to watch-only addresses in at least one confirmation and those spent to watch-only addresses in
that account. Add the InstantSend confirmations (5) for locked transactions. that account. Include the balance from InstantSend locked transactions.
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getbalance "" 3 true true dash-cli -testnet getbalance "" 3 true true

View file

@ -51,11 +51,10 @@ The `getreceivedbyaddress` RPC {{summary_getReceivedByAddress}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.4*
Get the dash received for a particular address, only counting Get the dash received for a particular address, only counting
transactions with six or more confirmations (ignore InstantSend confirmations for transactions with six or more confirmations (ignore InstantSend locked transactions):
locked InstantSend transactions):
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getreceivedbyaddress yYoCWcjbykWsQJ7MVJrTMeQd8TZe5N4Q7g 6 dash-cli -testnet getreceivedbyaddress yYoCWcjbykWsQJ7MVJrTMeQd8TZe5N4Q7g 6
@ -68,8 +67,7 @@ Result:
{% endhighlight %} {% endhighlight %}
Get the dash received for a particular address, only counting Get the dash received for a particular address, only counting
transactions with six or more confirmations (include InstantSend confirmations for transactions with six or more confirmations (include InstantSend locked transactions):
locked InstantSend transactions):
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getreceivedbyaddress yYoCWcjbykWsQJ7MVJrTMeQd8TZe5N4Q7g 6 true dash-cli -testnet getreceivedbyaddress yYoCWcjbykWsQJ7MVJrTMeQd8TZe5N4Q7g 6 true

View file

@ -53,10 +53,10 @@ Core. Use the RPCs listed in the See Also subsection below instead.
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.4*
Display account balances with one confirmation and watch-only addresses Display account balances with one confirmation and watch-only addresses
included. Add the InstantSend confirmations (5) for locked transactions. included. Add the balance of InstantSend locked transactions also.
{% highlight bash %} {% highlight bash %}
dash-cli -testnet listaccounts 1 true true dash-cli -testnet listaccounts 1 true true

View file

@ -88,11 +88,10 @@ Core. Use the RPCs listed in the See Also subsection below instead.
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.4*
Get the balances for all non-empty accounts, including only transactions Get the balances for all non-empty accounts, including transactions
which have been confirmed at least six times (include InstantSend confirmations which have been confirmed at least six times and InstantSend locked transactions:
for locked InstantSend transactions):
{% highlight bash %} {% highlight bash %}
dash-cli -testnet listreceivedbyaccount 6 true false true dash-cli -testnet listreceivedbyaccount 6 true false true

View file

@ -100,11 +100,10 @@ The `listreceivedbyaddress` RPC {{summary_listReceivedByAddress}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.4*
List addresses with balances confirmed by at least six blocks, including List addresses with balances confirmed by at least six blocks, including
watch-only addresses (include InstantSend confirmations for locked InstantSend watch-only addresses. Also include the balance from InstantSend locked transactions:
transactions):
{% highlight bash %} {% highlight bash %}
dash-cli -testnet listreceivedbyaddress 6 true false true dash-cli -testnet listreceivedbyaddress 6 true false true