創(chuàng)建一個(gè)錢(qián)包文件
根據(jù)BackupToMnemonicSeed方法修改;
final File walletFile = new File("regtest-001.wallet");
wallet.saveToFile(walletFile);
執(zhí)行后的日志文件
wallet: Wallet
Balances:
0.00 BTC ESTIMATED
0.00 BTC AVAILABLE
0.00 BTC ESTIMATED_SPENDABLE
0.00 BTC AVAILABLE_SPENDABLE
Transactions:
0 pending
0 unspent
0 spent
0 dead
Last seen best block: 0 (time unknown): null
Keys:
Earliest creation time: 2019-08-14T07:48:10Z
Seed birthday: 1565768890 [2019-08-14T07:48:10Z]
Ouput script type: P2PKH
Key to watch: tpubD9MTFdDQFmdryTp18hdrVZY1Nz85w1SpWFSmH3yLBT2YU7DVobJXwWbAjrCVCVetzGPwuoSEk6CvUZS4NNWwkjHLUdsYp3UjZpQSVKeczhS
Lookahead siz/thr: 100/33
addr:mu4P8xEcYeeqrrNk4mrxdxSj7CQfJey5qf hash160:948b4499b35c2c3069a37baaccb39c5fc488df60 (M, root)
addr:mtTWfcMw5dfjKyRFkb3mzmayLda83y1yPm hash160:8df2fe6ca99ca6aab0c04c9b32daa28ed6c26271 (M/0H, account)
addr:mjD3xJHDXWK2LpJtKpVyK7PFAAykwxavAt hash160:287dbd739a2273b34789da4bb5b0528366ee4d04 (M/0H/0, external)
addr:n4AxVfjyBsnR2HhLuWY9ZZ43HQqjkDKdj3 hash160:f882bdaf379b81d8c274faa5c838aefca9df8b64 (M/0H/1, internal)
seed: DeterministicSeed{unencrypted}
creation time: 1565768890
mnemonicCode: panic fly wisdom buzz treat grain vapor syrup couch goddess habit uphold
目前還在整理中申眼,代碼不全宫补,有問(wèn)題可以聯(lián)系我凹蜈;
主要基于bitcoinj