Wallet RPC updates

- Convert remaining existing RPCs to Dash
(settxfee->walletpassphrasechange)
This commit is contained in:
thephez 2017-11-30 13:09:06 -05:00
parent db89358b0a
commit 5428b88aa2
4 changed files with 38 additions and 11 deletions

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_setTxFee="sets the transaction fee per kilobyte paid by transactions created by this wallet." %}
<!-- __ -->
{% autocrossref %}
*Requires wallet support.*
@ -19,9 +21,9 @@ The `settxfee` RPC {{summary_setTxFee}}
{% itemplate ntpd1 %}
- n: "Transaction Fee Per Kilobyte"
t: "number (bitcoins)"
t: "number (dash)"
p: "Required<br>(exactly 1)"
d: "The transaction fee to pay, in bitcoins, for each kilobyte of transaction data. Be careful setting the fee too low---your transactions may not be relayed or included in blocks"
d: "The transaction fee to pay, in dash, for each kilobyte of transaction data. Be careful setting the fee too low---your transactions may not be relayed or included in blocks"
{% enditemplate %}
@ -35,12 +37,12 @@ The `settxfee` RPC {{summary_setTxFee}}
{% enditemplate %}
*Example from Bitcoin Core 0.10.0*
*Example from Dash Core 0.12.2*
Set the transaction fee per kilobyte to 100,000 satoshis.
Set the transaction fee per kilobyte to 10,000 duffs.
{% highlight bash %}
bitcoin-cli -testnet settxfee 0.00100000
dash-cli -testnet settxfee 0.00010000
{% endhighlight %}
Result:

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_walletLock="removes the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call `walletpassphrase` again before being able to call any methods which require the wallet to be unlocked." %}
<!-- __ -->
{% autocrossref %}
*Requires wallet support. Requires an unlocked wallet.*
@ -27,10 +29,10 @@ The `walletlock` RPC {{summary_walletLock}}
{% enditemplate %}
*Example from Bitcoin Core 0.10.0*
*Example from Dash Core 0.12.2*
{% highlight bash %}
bitcoin-cli -testnet walletlock
dash-cli -testnet walletlock
{% endhighlight %}
(Success: nothing printed.)

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_walletPassphrase="stores the wallet decryption key in memory for the indicated number of seconds. Issuing the `walletpassphrase` command while the wallet is already unlocked will set a new unlock time that overrides the old one." %}
<!-- __ -->
{% autocrossref %}
*Requires wallet support. Requires an encrypted wallet.*
@ -39,6 +41,16 @@ value of the passphrase parameter).
{% enditemplate %}
*Parameter #3---unlock for PrivateSend mixing only*
{% itemplate ntpd1 %}
- n: "Mixing Only"
t: "bool"
p: "Optional<br>(0 or 1)"
d: "If `true`, the wallet will be locked for sending functions but unlocked for mixing transactions (default: false)"
{% enditemplate %}
*Result---`null` on success*
{% itemplate ntpd1 %}
@ -49,12 +61,21 @@ value of the passphrase parameter).
{% enditemplate %}
*Example from Bitcoin Core 0.10.0*
*Example from Dash Core 0.12.2*
Unlock the wallet for 10 minutes (the passphrase is "test"):
{% highlight bash %}
bitcoin-cli -testnet walletpassphrase test 600
dash-cli -testnet walletpassphrase test 600
{% endhighlight %}
(Success: no result printed.)
Unlock the wallet for mixing transactions only for 10 minutes (the passphrase is "test"):
{% highlight bash %}
dash-cli -testnet walletpassphrase test 600 true
{% endhighlight %}
(Success: no result printed.)

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_walletPassphraseChange="changes the wallet passphrase from 'old passphrase' to 'new passphrase'." %}
<!-- __ -->
{% autocrossref %}
*Requires wallet support. Requires an encrypted wallet.*
@ -49,12 +51,12 @@ value of the passphrase parameter).
{% enditemplate %}
*Example from Bitcoin Core 0.10.0*
*Example from Dash Core 0.12.2*
Change the wallet passphrase from "test" to "example":
{% highlight bash %}
bitcoin-cli -testnet walletpassphrasechange test example
dash-cli -testnet walletpassphrasechange "test" "example"
{% endhighlight %}
(Success: no result printed.)