diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/abandontransaction.md b/_includes/devdoc/dash-core/rpcs/rpcs/abandontransaction.md index f0c4832b..f4567332 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/abandontransaction.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/abandontransaction.md @@ -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* diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/addmultisigaddress.md b/_includes/devdoc/dash-core/rpcs/rpcs/addmultisigaddress.md index ea0db441..8f592455 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/addmultisigaddress.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/addmultisigaddress.md @@ -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.) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/backupwallet.md b/_includes/devdoc/dash-core/rpcs/rpcs/backupwallet.md index 771285ff..c912f1fb 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/backupwallet.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/backupwallet.md @@ -9,6 +9,8 @@ http://opensource.org/licenses/MIT. {% assign summary_backupWallet="safely copies `wallet.dat` 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* diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/dumpprivkey.md b/_includes/devdoc/dash-core/rpcs/rpcs/dumpprivkey.md index f4432348..157ce37e 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/dumpprivkey.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/dumpprivkey.md @@ -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* diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/importprivkey.md b/_includes/devdoc/dash-core/rpcs/rpcs/importprivkey.md index b93afe56..f83b536f 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/importprivkey.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/importprivkey.md @@ -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 %}