mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Bumpfee, fundrawfee, importmulti examples fix
This commit is contained in:
parent
7a67a7c8cf
commit
a889ba750b
3 changed files with 11 additions and 10 deletions
|
@ -88,9 +88,10 @@ if the wallet or mempool contains a transaction that spends one of the transacti
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
bitcoin-cli -testnet bumpfee d4a33e0cabaz723149e1fcab4e033a40173\
|
bitcoin-cli -testnet bumpfee d4a33e0cabaz723149e1fcab4e033a40173\
|
||||||
88a644c65370e3cb06ba2f0e13975\
|
88a644c65370e3cb06ba2f0e13975\
|
||||||
{
|
'{
|
||||||
"totalFee": "0.0003",
|
"totalFee": 4000,
|
||||||
}
|
"replaceable": false
|
||||||
|
}'
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
|
@ -98,8 +99,8 @@ Result:
|
||||||
{% highlight json %}
|
{% highlight json %}
|
||||||
{
|
{
|
||||||
"txid": "37a55ce49636977k79bcb04ee1143573b570b1743e09660e79e7ec3320968ca54",
|
"txid": "37a55ce49636977k79bcb04ee1143573b570b1743e09660e79e7ec3320968ca54",
|
||||||
"origfee": 0.0000245,
|
"origfee": 0.00002450,
|
||||||
"fee": 0.0003,
|
"fee": 0.00004000,
|
||||||
"errors": ""
|
"errors": ""
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
|
@ -104,13 +104,13 @@ bitcoin-cli -testnet fundrawtransaction 01000000011da9283b4ddf8d\
|
||||||
89eb996988b89ead56cecdc44041ab38bf787f1206cd90b51e0000000000ffff\
|
89eb996988b89ead56cecdc44041ab38bf787f1206cd90b51e0000000000ffff\
|
||||||
ffff01405dc600000000001976a9140dfc8bafc8419853b34d5e072ad37d1a51\
|
ffff01405dc600000000001976a9140dfc8bafc8419853b34d5e072ad37d1a51\
|
||||||
59f58488ac00000000
|
59f58488ac00000000
|
||||||
{
|
'{
|
||||||
"changeAddress": "15gJiApWFGTN2iTteQwQbqasdT6dwGWwv6",
|
"changeAddress": "15gJiApWFGTN2iTteQwQbqasdT6dwGWwv6",
|
||||||
"changePosition" : "",
|
"changePosition" : 1,
|
||||||
"includeWatching" : false,
|
"includeWatching" : false,
|
||||||
"lockUnspents" : true,
|
"lockUnspents" : true,
|
||||||
"feeRate" : 0.0001
|
"feeRate" : 0.0001
|
||||||
}
|
}'
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
|
|
|
@ -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):
|
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 %}
|
{% highlight bash %}
|
||||||
bitcoin-cli -testnet importmulti '''
|
bitcoin-cli importmulti '
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"scriptPubKey" : { "address": "1NL9w5fP9kX2D9ToNZPxaiwFJCngNYEYJo" },
|
"scriptPubKey" : { "address": "1NL9w5fP9kX2D9ToNZPxaiwFJCngNYEYJo" },
|
||||||
|
@ -144,7 +144,7 @@ bitcoin-cli -testnet importmulti '''
|
||||||
"timestamp" : 1493912405,
|
"timestamp" : 1493912405,
|
||||||
"label" : "TestFailure"
|
"label" : "TestFailure"
|
||||||
}
|
}
|
||||||
]''' '{ "rescan": true }'
|
]' '{ "rescan": true }'
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Result (scriptPubKey import failed because `internal` was not set to `true`):
|
Result (scriptPubKey import failed because `internal` was not set to `true`):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue