Bumpfee, fundrawfee, importmulti examples fix

This commit is contained in:
Michael Rotarius 2017-05-09 22:33:21 +02:00
parent 7a67a7c8cf
commit a889ba750b
3 changed files with 11 additions and 10 deletions

View file

@ -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 %}

View file

@ -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:

View file

@ -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`):