Content - RPC - Add PS amount and round

- Related to dashpay/dash#2230
This commit is contained in:
thephez 2018-10-23 13:13:11 -04:00
parent d91a80dde1
commit af714fc445
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099
9 changed files with 112 additions and 0 deletions

View file

@ -491,6 +491,10 @@ DIP1:
'`setgenerate` RPC': rpc setgenerate
'`setnetworkactive`': rpc setnetworkactive
'`setnetworkactive` RPC': rpc setnetworkactive
'`setprivatesendamount`': rpc setprivatesendamount
'`setprivatesendamount` RPC': rpc setprivatesendamount
'`setprivatesendrounds`': rpc setprivatesendrounds
'`setprivatesendrounds` RPC': rpc setprivatesendrounds
'`settxfee`': rpc settxfee
'`settxfee` RPC': rpc settxfee
'`signmessage`': rpc signmessage

View file

@ -301,6 +301,8 @@ devsearches:
- 'SetBIP69Enabled': "/en/developer-reference#setbip69enabled"
- 'SetGenerate': "/en/developer-reference#setgenerate"
- 'SetNetworkActive': "/en/developer-reference#setnetworkactive"
- 'SetPrivateSendAmount': "/en/developer-reference#setprivatesendamount"
- 'SetPrivateSendRounds': "/en/developer-reference#setprivatesendrounds"
- 'SetTxFee': "/en/developer-reference#settxfee"
- 'SignMessage': "/en/developer-reference#signmessage"
- 'SignMessageWithPrivKey': "/en/developer-reference#signmessagewithprivkey"

View file

@ -291,6 +291,8 @@ default.
* [SendMany][rpc sendmany]: {{summary_sendMany}}
* [SendToAddress][rpc sendtoaddress]: {{summary_sendToAddress}}
* [SetAccount][rpc setaccount]: {{summary_setAccount}} {{DEPRECATED}}
* [SetPrivateSendAmount][rpc setprivatesendamount]: {{summary_setPrivateSendAmount}}
* [SetPrivateSendRounds][rpc setprivatesendrounds]: {{summary_setPrivateSendRounds}}
* [SetTxFee][rpc settxfee]: {{summary_setTxFee}}
* [SignMessage][rpc signmessage]: {{summary_signMessage}}
* [WalletLock][rpc walletlock]: {{summary_walletLock}}

View file

@ -0,0 +1,42 @@
{% 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/setprivatesendamount.md" %}
##### SetPrivateSendAmount
{% include helpers/subhead-links.md %}
{% assign summary_setPrivateSendAmount="sets the amount of DASH to be mixed with PrivateSend" %}
<!-- __ -->
{% autocrossref %}
The `setprivatesendamount` RPC {{summary_setPrivateSendAmount}}
*Parameter #1---amount to mix*
{% itemplate ntpd1 %}
- n: "Amount"
t: "int"
p: "Required<br>(exactly 1)"
d: "The number of DASH to mix (minimum: 2, maximum: 21,000,000)"
{% enditemplate %}
*Result---`null` on success*
*Example from Dash Core 0.12.4*
{% highlight bash %}
dash-cli -testnet setprivatesendamount 2000
{% endhighlight %}
(Success: no result displayed.)
*See also:*
* [SetPrivateSendRounds][rpc setprivatesendrounds]: {{summary_setPrivateSendRounds}}
{% endautocrossref %}

View file

@ -0,0 +1,42 @@
{% 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/setprivatesendrounds.md" %}
##### SetPrivateSendRounds
{% include helpers/subhead-links.md %}
{% assign summary_setPrivateSendRounds="sets the number of PrivateSend mixing rounds to use" %}
<!-- __ -->
{% autocrossref %}
The `setprivatesendrounds` RPC {{summary_setPrivateSendRounds}}
*Parameter #1---number of mixing rounds to use*
{% itemplate ntpd1 %}
- n: "Rounds"
t: "int"
p: "Required<br>(exactly 1)"
d: "The number of mixing rounds to use (minimum: 1, maximum: 16)"
{% enditemplate %}
*Result---`null` on success*
*Example from Dash Core 0.12.4*
{% highlight bash %}
dash-cli -testnet setprivatesendrounds 4
{% endhighlight %}
(Success: no result displayed.)
*See also:*
* [SetPrivateSendAmount][rpc setprivatesendamount]: {{summary_setPrivateSendAmount}}
{% endautocrossref %}

View file

@ -128,6 +128,8 @@ This file is licensed under the terms of its source texts{%endcomment%}
{% assign summary_setBan="attempts add or remove a IP/Subnet from the banned list." %}
{% assign summary_setGenerate="was removed in Dash Core 0.12.3." %}
{% assign summary_setNetworkActive="disables/enables all P2P network activity." %}
{% assign summary_setPrivateSendAmount="sets the amount of DASH to be mixed with PrivateSend" %}
{% assign summary_setPrivateSendRounds="sets the number of PrivateSend mixing rounds to use" %}
{% assign summary_setTxFee="sets the transaction fee per kilobyte paid by transactions created by this wallet." %}
{% assign summary_signMessage="signs a message with the private key of an address." %}
{% assign summary_signMessageWithPrivKey="signs a message with a given private key." %}

View file

@ -805,6 +805,18 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-dzk6">Y</td>
<td class="tg-dzk6"></td>
</tr>
<tr>
<td class="tg-yw4l">Wallet</td>
<td class="tg-yw4l"><a href="#setprivatesendamount">SetPrivateSendAmount</a></td>
<td class="tg-baqh">Y</td>
<td class="tg-baqh">Added in 0.12.4.0</td>
</tr>
<tr>
<td class="tg-b7b8">Wallet</td>
<td class="tg-b7b8"><a href="#setprivatesendrounds">SetPrivateSendRounds</a></td>
<td class="tg-dzk6">Y</td>
<td class="tg-dzk6">Added in 0.12.4.0</td>
</tr>
<tr>
<td class="tg-yw4l">Wallet</td>
<td class="tg-yw4l"><a href="#settxfee">SetTxFee</a></td>

View file

@ -179,6 +179,8 @@ http://opensource.org/licenses/MIT.
[rpc setbip69enabled]: /en/developer-reference#setbip69enabled
[rpc setgenerate]: /en/developer-reference#setgenerate
[rpc setnetworkactive]: /en/developer-reference#setnetworkactive
[rpc setprivatesendamount]: /en/developer-reference#setprivatesendamount
[rpc setprivatesendrounds]: /en/developer-reference#setprivatesendrounds
[rpc settxfee]: /en/developer-reference#settxfee
[rpc signmessage]: /en/developer-reference#signmessage
[rpc signmessagewithprivkey]: /en/developer-reference#signmessagewithprivkey

View file

@ -308,6 +308,10 @@ untrusted source.
{% include devdoc/dash-core/rpcs/rpcs/setnetworkactive.md %}
{% include devdoc/dash-core/rpcs/rpcs/setprivatesendamount.md %}
{% include devdoc/dash-core/rpcs/rpcs/setprivatesendrounds.md %}
{% include devdoc/dash-core/rpcs/rpcs/settxfee.md %}
{% include devdoc/dash-core/rpcs/rpcs/signmessage.md %}