mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Update a few wallet RPCs
This commit is contained in:
parent
6fdba2bc89
commit
ff3508cb25
5 changed files with 32 additions and 24 deletions
|
@ -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." %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Added in Bitcoin Core 0.12.0*
|
||||
|
@ -35,15 +37,15 @@ The `abandontransaction` RPC {{summary_abandonTransaction}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Abandons the transaction on your node.
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli abandontransaction fa3970c341c9f5de6ab13f128cbfec58d732e736a505fe32137ad551c799ecc4
|
||||
dash-cli abandontransaction fa3970c341c9f5de6ab13f128cbfec58d732e736a505fe32137ad551c799ecc4
|
||||
{% 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*
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
{% assign summary_addMultiSigAddress="adds a P2SH multisig address to the wallet." %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support.*
|
||||
|
@ -60,28 +62,26 @@ The `addmultisigaddress` RPC {{summary_addMultiSigAddress}}
|
|||
|
||||
{% 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
|
||||
two P2PKH addresses and one full public key:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet addmultisigaddress \
|
||||
2 \
|
||||
'''
|
||||
[
|
||||
"mjbLRSidW1MY8oubvs4SMEnHNFXxCcoehQ",
|
||||
"02ecd2d250a76d204011de6bc365a56033b9b3a149f679bc17205555d3c2b2854f",
|
||||
"mt17cV37fBqZsnMmrHnGCm9pM28R1kQdMG"
|
||||
]
|
||||
''' \
|
||||
'test account'
|
||||
dash-cli -testnet addmultisigaddress 2 '''
|
||||
[
|
||||
"yNpezfFDfoikDuT1f4iK75AiLp2YLPsGAb",
|
||||
"0311f97539724e0de38fb1ff79f5148e5202459d06ed07193ab18c730274fd0d88",
|
||||
"yVJj7TB3ZhMcSP2wo65ZFNqy23BQH9tT87"
|
||||
]
|
||||
''' \
|
||||
'test account'
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
2MyVxxgNBk5zHRPRY2iVjGRJHYZEp1pMCSq
|
||||
8uJLxDxk2gEMbidF5vT8XLS2UCgQmVcroW
|
||||
{% endhighlight %}
|
||||
|
||||
(New P2SH multisig address also stored in wallet.)
|
||||
|
|
|
@ -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." %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support.*
|
||||
|
@ -35,10 +37,10 @@ The `backupwallet` RPC {{summary_backupWallet}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet backupwallet /tmp/backup.dat
|
||||
dash-cli -testnet backupwallet /tmp/backup.dat
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
|
|
@ -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.)" %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support. Requires an unlocked wallet or an
|
||||
|
@ -36,16 +38,16 @@ The `dumpprivkey` RPC {{summary_dumpPrivKey}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet dumpprivkey moQR7i8XM4rSGoNwEsw3h4YEuduuP6mxw7
|
||||
dash-cli -testnet dumpprivkey ycBuREgSskHHkWLxDa9A5WppCki6PfFycL
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
cTVNtBK7mBi2yc9syEnwbiUpnpGJKohDWzXMeF4tGKAQ7wvomr95
|
||||
cQZZ4awQvcXXyES3CmUJqSgeTobQm9t9nyUr337kvUtsWsnvvMyw
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
|
|
@ -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." %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support. Wallet must be unlocked.*
|
||||
|
@ -55,15 +57,15 @@ The `importprivkey` RPC {{summary_importPrivKey}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
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:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet importprivkey \
|
||||
cU8Q2jGeX3GNKNa5etiC8mgEgFSeVUTRQfWE2ZCzszyqYNK4Mepy \
|
||||
dash-cli -testnet importprivkey \
|
||||
cQZZ4awQvcXXyES3CmUJqSgeTobQm9t9nyUr337kvUtsWsnvvMyw \
|
||||
"test label" \
|
||||
true
|
||||
{% endhighlight %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue