From 5428b88aa2c5f9166e18598d9d658297b53d7126 Mon Sep 17 00:00:00 2001 From: thephez Date: Thu, 30 Nov 2017 13:09:06 -0500 Subject: [PATCH] Wallet RPC updates - Convert remaining existing RPCs to Dash (settxfee->walletpassphrasechange) --- .../devdoc/dash-core/rpcs/rpcs/settxfee.md | 12 +++++---- .../devdoc/dash-core/rpcs/rpcs/walletlock.md | 6 +++-- .../dash-core/rpcs/rpcs/walletpassphrase.md | 25 +++++++++++++++++-- .../rpcs/rpcs/walletpassphrasechange.md | 6 +++-- 4 files changed, 38 insertions(+), 11 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/settxfee.md b/_includes/devdoc/dash-core/rpcs/rpcs/settxfee.md index b5a603af..50e6517a 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/settxfee.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/settxfee.md @@ -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
(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: diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/walletlock.md b/_includes/devdoc/dash-core/rpcs/rpcs/walletlock.md index b09b0af0..712ef9be 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/walletlock.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/walletlock.md @@ -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.) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrase.md b/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrase.md index c91a51cf..09b5aadc 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrase.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrase.md @@ -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
(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.) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrasechange.md b/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrasechange.md index fab335a7..f091096c 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrasechange.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/walletpassphrasechange.md @@ -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.)