Update a few wallet RPCs

This commit is contained in:
thephez 2017-11-28 13:41:27 -05:00
parent 6fdba2bc89
commit ff3508cb25
5 changed files with 32 additions and 24 deletions

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_abandonTransaction="marks an in-wallet transaction and all its in-wallet descendants as abandoned. This allows their inputs to be respent." %} {% assign summary_abandonTransaction="marks an in-wallet transaction and all its in-wallet descendants as abandoned. This allows their inputs to be respent." %}
<!-- __ -->
{% autocrossref %} {% autocrossref %}
*Added in Bitcoin Core 0.12.0* *Added in Bitcoin Core 0.12.0*
@ -35,15 +37,15 @@ The `abandontransaction` RPC {{summary_abandonTransaction}}
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.13.1* *Example from Dash Core 0.12.2*
Abandons the transaction on your node. Abandons the transaction on your node.
{% highlight bash %} {% highlight bash %}
bitcoin-cli abandontransaction fa3970c341c9f5de6ab13f128cbfec58d732e736a505fe32137ad551c799ecc4 dash-cli abandontransaction fa3970c341c9f5de6ab13f128cbfec58d732e736a505fe32137ad551c799ecc4
{% endhighlight %} {% endhighlight %}
Result (no output from `bitcoin-cli` because result is set to `null`). Result (no output from `dash-cli` because result is set to `null`).
*See also* *See also*

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_addMultiSigAddress="adds a P2SH multisig address to the wallet." %} {% assign summary_addMultiSigAddress="adds a P2SH multisig address to the wallet." %}
<!-- __ -->
{% autocrossref %} {% autocrossref %}
*Requires wallet support.* *Requires wallet support.*
@ -60,19 +62,17 @@ The `addmultisigaddress` RPC {{summary_addMultiSigAddress}}
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.10.0* *Example from Dash Core 0.12.2*
Adding a 2-of-3 P2SH multisig address to the "test account" by mixing Adding a 2-of-3 P2SH multisig address to the "test account" by mixing
two P2PKH addresses and one full public key: two P2PKH addresses and one full public key:
{% highlight bash %} {% highlight bash %}
bitcoin-cli -testnet addmultisigaddress \ dash-cli -testnet addmultisigaddress 2 '''
2 \
'''
[ [
"mjbLRSidW1MY8oubvs4SMEnHNFXxCcoehQ", "yNpezfFDfoikDuT1f4iK75AiLp2YLPsGAb",
"02ecd2d250a76d204011de6bc365a56033b9b3a149f679bc17205555d3c2b2854f", "0311f97539724e0de38fb1ff79f5148e5202459d06ed07193ab18c730274fd0d88",
"mt17cV37fBqZsnMmrHnGCm9pM28R1kQdMG" "yVJj7TB3ZhMcSP2wo65ZFNqy23BQH9tT87"
] ]
''' \ ''' \
'test account' 'test account'
@ -81,7 +81,7 @@ bitcoin-cli -testnet addmultisigaddress \
Result: Result:
{% highlight text %} {% highlight text %}
2MyVxxgNBk5zHRPRY2iVjGRJHYZEp1pMCSq 8uJLxDxk2gEMbidF5vT8XLS2UCgQmVcroW
{% endhighlight %} {% endhighlight %}
(New P2SH multisig address also stored in wallet.) (New P2SH multisig address also stored in wallet.)

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_backupWallet="safely copies `wallet.dat`<!--noref--> to the specified file, which can be a directory or a path with filename." %} {% assign summary_backupWallet="safely copies `wallet.dat`<!--noref--> to the specified file, which can be a directory or a path with filename." %}
<!-- __ -->
{% autocrossref %} {% autocrossref %}
*Requires wallet support.* *Requires wallet support.*
@ -35,10 +37,10 @@ The `backupwallet` RPC {{summary_backupWallet}}
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.10.0* *Example from Dash Core 0.12.2*
{% highlight bash %} {% highlight bash %}
bitcoin-cli -testnet backupwallet /tmp/backup.dat dash-cli -testnet backupwallet /tmp/backup.dat
{% endhighlight %} {% endhighlight %}
*See also* *See also*

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_dumpPrivKey="returns the wallet-import-format (WIP) private key corresponding to an address. (But does not remove it from the wallet.)" %} {% assign summary_dumpPrivKey="returns the wallet-import-format (WIP) private key corresponding to an address. (But does not remove it from the wallet.)" %}
<!-- __ -->
{% autocrossref %} {% autocrossref %}
*Requires wallet support. Requires an unlocked wallet or an *Requires wallet support. Requires an unlocked wallet or an
@ -36,16 +38,16 @@ The `dumpprivkey` RPC {{summary_dumpPrivKey}}
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.10.0* *Example from Dash Core 0.12.2*
{% highlight bash %} {% highlight bash %}
bitcoin-cli -testnet dumpprivkey moQR7i8XM4rSGoNwEsw3h4YEuduuP6mxw7 dash-cli -testnet dumpprivkey ycBuREgSskHHkWLxDa9A5WppCki6PfFycL
{% endhighlight %} {% endhighlight %}
Result: Result:
{% highlight text %} {% highlight text %}
cTVNtBK7mBi2yc9syEnwbiUpnpGJKohDWzXMeF4tGKAQ7wvomr95 cQZZ4awQvcXXyES3CmUJqSgeTobQm9t9nyUr337kvUtsWsnvvMyw
{% endhighlight %} {% endhighlight %}
*See also* *See also*

View file

@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
{% assign summary_importPrivKey="adds a private key to your wallet. The key should be formatted in the wallet import format created by the `dumpprivkey` RPC." %} {% assign summary_importPrivKey="adds a private key to your wallet. The key should be formatted in the wallet import format created by the `dumpprivkey` RPC." %}
<!-- __ -->
{% autocrossref %} {% autocrossref %}
*Requires wallet support. Wallet must be unlocked.* *Requires wallet support. Wallet must be unlocked.*
@ -55,15 +57,15 @@ The `importprivkey` RPC {{summary_importPrivKey}}
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.10.0* *Example from Dash Core 0.12.2*
Import the private key for the address Import the private key for the address
mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe, giving it a label and scanning the ycBuREgSskHHkWLxDa9A5WppCki6PfFycL, giving it a label and scanning the
entire block chain: entire block chain:
{% highlight bash %} {% highlight bash %}
bitcoin-cli -testnet importprivkey \ dash-cli -testnet importprivkey \
cU8Q2jGeX3GNKNa5etiC8mgEgFSeVUTRQfWE2ZCzszyqYNK4Mepy \ cQZZ4awQvcXXyES3CmUJqSgeTobQm9t9nyUr337kvUtsWsnvvMyw \
"test label" \ "test label" \
true true
{% endhighlight %} {% endhighlight %}