Content - RPC - Update dumpwallet with added info

- Change from dashpay/dash#2191
This commit is contained in:
thephez 2018-10-23 09:11:23 -04:00
parent 4e856ad7b4
commit 29a3e6a48e
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099
2 changed files with 55 additions and 7 deletions

View file

@ -36,9 +36,43 @@ The `dumpwallet` RPC {{summary_dumpWallet}}
p: "Required<br>(exactly 1)"
d: "Always `null` whether success or failure. The JSON-RPC error and message fields will be set if a failure occurred"
- n: "→<br>`dashcoreversion`"
t: "string"
p: "Required<br>(exactly 1)"
d: "Dash Core build details"
- n: "→<br>`lastblockheight`"
t: "int"
p: "Required<br>(exactly 1)"
d: "Height of the most recent block received"
- n: "→<br>`lastblockhash`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "Hash of the most recent block received"
- n: "→<br>`lastblocktime`"
t: "string"
p: "Required<br>(exactly 1)"
d: "Timestamp of the most recent block received"
- n: "→<br>`keys`"
t: "int"
p: "Required<br>(exactly 1)"
d: "Number of keys dumped"
- n: "→<br>`file`"
t: "string"
p: "Required<br>(exactly 1)"
d: "Name of the file the wallet was dumped to"
- n: "→<br>`warning`"
t: "string"
p: "Required<br>(exactly 1)"
d: "Warning to not share the file due to it containing the private keys"
{% enditemplate %}
*Example from Dash Core 0.12.2*
*Example from Dash Core 0.12.4*
Create a wallet dump and then print its first 10 lines.
@ -47,13 +81,27 @@ dash-cli -testnet dumpwallet /tmp/dump.txt
head /tmp/dump.txt
{% endhighlight %}
Results (only showing the first 10 lines):
Results:
{% highlight json %}
{
"dashcoreversion": "v0.12.4.0",
"lastblockheight": 250186,
"lastblockhash": "0000000000a82fb1890de5da4740d0671910a436fe6fc4503a3e553adef073b4",
"lastblocktime": "2018-10-23T12:50:44Z",
"keys": 8135,
"file": "/tmp/dump.txt",
"warning": "/tmp/dump.txt file contains all private keys from this wallet. Do not share it with anyone!"
}
{% endhighlight %}
Results (the first 10 lines of the file):
{% highlight bash %}
# Wallet dump created by Dash Core v0.12.2.1 (2017-11-11 10:02:45 +0300)
# * Created on 2017-11-28T19:52:46Z
# * Best block at time of backup was 33750 (0000000005d5d1651f3b52d7a7158e350261519c52a28527c6053a8f5989a5a4),
# mined on 2017-11-28T19:48:05Z
# Wallet dump created by Dash Core v0.12.4.0
# * Created on 2018-10-23T12:55:38Z
# * Best block at time of backup was 250186 (0000000000a82fb1890de5da4740d0671910a436fe6fc4503a3e553adef073b4),
# mined on 2018-10-23T12:50:44Z
cQZZ4awQvcXXyES3CmUJqSgeTobQm9t9nyUr337kvUtsWsnvvMyw 2017-11-28T18:21:36Z label=test%20label # addr=ycBuREgSskHHkWLxDa9A5WppCki6PfFycL
cTBRPnJoPjEMh67v1zes437v8Po5bFLDWKgEudTJMhVaLs1ZVGJe 2017-11-28T18:21:37Z reserve=1 # addr=yNsWkgPLN1u7p5dfWYnasYdgirU2J3tjUj

View file

@ -575,7 +575,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-yw4l">Wallet</td>
<td class="tg-yw4l"><a href="#dumpwallet">DumpWallet</a></td>
<td class="tg-baqh">Y</td>
<td class="tg-baqh"></td>
<td class="tg-baqh">Updated in 0.12.4.0</td>
</tr>
<tr>
<td class="tg-b7b8">Wallet</td>