From a889ba750b3afb43f84c981e0885096e0d87489b Mon Sep 17 00:00:00 2001 From: Michael Rotarius Date: Tue, 9 May 2017 22:33:21 +0200 Subject: [PATCH] Bumpfee, fundrawfee, importmulti examples fix --- _includes/devdoc/bitcoin-core/rpcs/rpcs/bumpfee.md | 11 ++++++----- .../bitcoin-core/rpcs/rpcs/fundrawtransaction.md | 6 +++--- .../devdoc/bitcoin-core/rpcs/rpcs/importmulti.md | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/bumpfee.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/bumpfee.md index 01245086..7f10c7bf 100644 --- a/_includes/devdoc/bitcoin-core/rpcs/rpcs/bumpfee.md +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/bumpfee.md @@ -88,9 +88,10 @@ if the wallet or mempool contains a transaction that spends one of the transacti {% highlight bash %} bitcoin-cli -testnet bumpfee d4a33e0cabaz723149e1fcab4e033a40173\ 88a644c65370e3cb06ba2f0e13975\ -{ - "totalFee": "0.0003", -} +'{ + "totalFee": 4000, + "replaceable": false +}' {% endhighlight %} Result: @@ -98,8 +99,8 @@ Result: {% highlight json %} { "txid": "37a55ce49636977k79bcb04ee1143573b570b1743e09660e79e7ec3320968ca54", - "origfee": 0.0000245, - "fee": 0.0003, + "origfee": 0.00002450, + "fee": 0.00004000, "errors": "" } {% endhighlight %} diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md index f38c4e66..00c49b69 100644 --- a/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/fundrawtransaction.md @@ -104,13 +104,13 @@ bitcoin-cli -testnet fundrawtransaction 01000000011da9283b4ddf8d\ 89eb996988b89ead56cecdc44041ab38bf787f1206cd90b51e0000000000ffff\ ffff01405dc600000000001976a9140dfc8bafc8419853b34d5e072ad37d1a51\ 59f58488ac00000000 -{ +'{ "changeAddress": "15gJiApWFGTN2iTteQwQbqasdT6dwGWwv6", - "changePosition" : "", + "changePosition" : 1, "includeWatching" : false, "lockUnspents" : true, "feeRate" : 0.0001 -} +}' {% endhighlight %} Result: diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/importmulti.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/importmulti.md index 600e37a0..fa8c2257 100644 --- a/_includes/devdoc/bitcoin-core/rpcs/rpcs/importmulti.md +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/importmulti.md @@ -132,7 +132,7 @@ The `importmulti` RPC {{summary_importMulti}} Import the address 1NL9w5fP9kX2D9ToNZPxaiwFJCngNYEYJo (giving it a label and scanning the entire block chain) and the scriptPubKey 76a9149e857da0a5b397559c78c98c9d3f7f655d19c68688ac (giving a specific timestamp and label): {% highlight bash %} -bitcoin-cli -testnet importmulti ''' +bitcoin-cli importmulti ' [ { "scriptPubKey" : { "address": "1NL9w5fP9kX2D9ToNZPxaiwFJCngNYEYJo" }, @@ -144,7 +144,7 @@ bitcoin-cli -testnet importmulti ''' "timestamp" : 1493912405, "label" : "TestFailure" } - ]''' '{ "rescan": true }' + ]' '{ "rescan": true }' {% endhighlight %} Result (scriptPubKey import failed because `internal` was not set to `true`):