bitcoin core - How exactly does -rescan work? - Bitcoin ...

Bitcoin-s v0.3.0 released: Neutrino node, PSBTs, wallet rescans with blockfilters and more!

submitted by Chris_Stewart_5 to Bitcoin [link] [comments]

Is my wallet in rescan phase? No wat to check it via bitcoin-cli ?

Hello,
I'm trying to determine if my wallet on Bitcoin Core is rescanning for txs.
I would like to do a shell script to do this
Anyone has a way to do this via bitcoin-cli? It seems that there is no way but maybe there's something I'm missing.
Thanks in advice for help or suggestions.
submitted by danbadjar to Bitcoin [link] [comments]

Bitcoin Unlimited how to delete unconfirmed wallet transactions without rescan

So due to a mistake on my part while splitting my BCH and BTC, all my backups of my BCH wallet.dat file have unconfirmed transactions that are on the BTC blockchain. I downloaded the BCH blockchain using Bitcoin Unlimited in prune mode because storage is tight. I assumed that when it got past the BTC transactions it would simply delete them (they're the wrong transaction format and not in any block) but it hasn't.
All the methods of deleting transactions from wallets rely on using -zapwallettxes and -rescan, which I would rather not do (it took quite a while to download the blockchain to begin with).
Is there any way to delete those transactions from the wallet file without a rescan?
Note - the blockchain still has 10 days left to download, but the transactions are older than that.
submitted by CJYP to btc [link] [comments]

So I just opened my bread wallet and had to make a new passcode and use my paper key to get the wallet. My wallet loaded at $0 which I know is not true. How do I get my balance back? I saw something about rescanning on another bitcoin post. How would I do that?

submitted by icaiwa to Bitcoin [link] [comments]

Could someone help me out? I downloaded Bitcoin ABC, synced with the blockchain, and rescanned my backed-up wallet. Why is my balance still zero?

After I rescanned with my wallet, I see all my transaction history, but beginning August 1st, they're grayed out (unconfirmed).
What's the best way for me to get my coins?
submitted by Joecracko to btc [link] [comments]

Bitcoin-qt is only using one CPU core out of the 30 I have on an AWS EC2 instance and is taking forever to rescan when I add a new wallet: how do I allow it to use more than one CPU? /r/Bitcoin

Bitcoin-qt is only using one CPU core out of the 30 I have on an AWS EC2 instance and is taking forever to rescan when I add a new wallet: how do I allow it to use more than one CPU? /Bitcoin submitted by BitcoinAllBot to BitcoinAll [link] [comments]

So I just opened my bread wallet and had to make a new passcode and use my paper key to get the wallet. My wallet loaded at $0 which I know is not true. How do I get my balance back? I saw something about rescanning on another bitcoin post. How would I do that? /r/Bitcoin

So I just opened my bread wallet and had to make a new passcode and use my paper key to get the wallet. My wallet loaded at $0 which I know is not true. How do I get my balance back? I saw something about rescanning on another bitcoin post. How would I do that? /Bitcoin submitted by HiIAMCaptainObvious to BitcoinAll [link] [comments]

Have an old bitcoin-qt syncd fully to the network, replaced wallet.dat and rescanned, nothing comes up. Its a 5 year old wallet how can I get it working with bitcoin core?

submitted by snickers01 to Bitcoin [link] [comments]

Bitcoin Unlimited how to delete unconfirmed wallet transactions without rescan /r/btc

Bitcoin Unlimited how to delete unconfirmed wallet transactions without rescan /btc submitted by BitcoinAllBot to BitcoinAll [link] [comments]

Have an old bitcoin-qt syncd fully to the network, replaced wallet.dat and rescanned, nothing comes up. Its a 5 year old wallet how can I get it working with bitcoin core? /r/Bitcoin

Have an old bitcoin-qt syncd fully to the network, replaced wallet.dat and rescanned, nothing comes up. Its a 5 year old wallet how can I get it working with bitcoin core? /Bitcoin submitted by BitcoinAllBot to BitcoinAll [link] [comments]

Could someone help me out? I downloaded Bitcoin ABC, synced with the blockchain, and rescanned my backed-up wallet. Why is my balance still zero? /r/btc

Could someone help me out? I downloaded Bitcoin ABC, synced with the blockchain, and rescanned my backed-up wallet. Why is my balance still zero? /btc submitted by BitcoinAllBot to BitcoinAll [link] [comments]

wallet.dat

On my computer, I have a couple of wallet.dat files that I "backed up" when I was running the bitcoin client. How can I find out which one is my actual wallet that has my bitcoin in it? (without installing the client and dealing with the blockchain download)
Details. I ran the bitcoin client off an external drive because the blockchain was huge and my SSD at the time was small. That external drive died. I made copies of the wallet.dat file a few times. I know some of the wallet files are blank but somewhere on my computer is my actual wallet.dat file that has my coin in it. last time I looked it was only a few hundred dollars worth. Nothing to make me rich but I want to use cashapp to manage it now and not sure how I can get my loot.
I apologize if this has been asked a thousand times but please help me out.
submitted by staplebench to BitcoinBeginners [link] [comments]

Power of the Command Line (bitcoin-cli, hwi, electrum, trezorctl)

I think some of the console tools available with HW wallets today are greatly under utilized. Here's a quick write-up on how to create and sign a TXN very similar to 43d27...1fc06 found on the SLIP-14 wallet. I'll be using TrezorCTL, Electrum, and HWI for the signing. I won't go much into the setup or install, but feel free to ask if you have questions about it. Note, you don't have to use all three of these. Any one will produce a valid signed TXN for broadcast. I just showed how to do it three ways. Whats more some of the Electrum and HWI steps are interchangeable.
ColdCard also has a utility called ckcc that will do the sign operation instead of HWI, but in many ways they are interchangeable. KeepKey and Ledger both have libraries for scripted signing but no one-shot, one-line console apps that I know of. But HWI and Electrum of course work on all four.

TrezorCTL

This is the what most would think of to use to craft and sign TXNs, and is definitely very simple. The signing uses a script called build_tx.py to create a JSON file that is then used by the btc sign-tx command. The whole process is basically:
  1. tools/build_tx.py | trezorctl btc sign-tx -
This just means, take the output of build_tx and sign it. To copy 43d27...1fc06, I wrote a small script to feed build_tx, so my process looks like:
  1. ~/input.sh | tools/build_tx.py | trezorctl btc sign-tx -
But it's all very simple. Note... I used TrezorCTL v0.12.2 but build_tx.py version 0.13.0 1.

input.sh

```

!/bin/bash

secho() { sleep 1; echo $*}
secho "Testnet" # coin name secho "tbtc1.trezor.io" # blockbook server and outpoint (below) secho "e294c4c172c3d87991b0369e45d6af8584be92914d01e3060fad1ed31d12ff00:0" secho "m/84'/1'/0'/0/0" # prev_out derivation to signing key secho "4294967293" # Sequence for RBF; hex(-3) secho "segwit" # Signature type on prev_out to use secho "" # NACK to progress to outs secho "2MsiAgG5LVDmnmJUPnYaCeQnARWGbGSVnr3" # out[0].addr secho "10000000" # out[1].amt secho "tb1q9l0rk0gkgn73d0gc57qn3t3cwvucaj3h8wtrlu" # out[1].addr secho "20000000" # out[1].amt secho "tb1qejqxwzfld7zr6mf7ygqy5s5se5xq7vmt96jk9x" # out[2].addr secho "99999694" # out[2].amt secho "" # NACK to progress to change secho "" # NACK to skip change secho "2" # txn.version secho "0" # txn.locktime ```

Electrum

Electrum is one of the better GUI wallets available, but it also has a pretty good console interface. Like before you need your Trezor with the SLIP-14 wallet loaded and paired to Electrum. I'll assume Electrum is up and running with the Trezor wallet loaded to make things simple.
Like with TrezorCTL, Electrum feeds on a JSON file, but unlike TrezorCTL it needs that JSON squished into the command line. This is a simple sed command, but I won't bore you with the details, but just assume that's done. So the process in Electrum (v4.0.3) looks like:
  1. electrum serialize (create psbt to sign)
  2. electrum --wallet signtransaction (sign said psbt)
Still pretty simple right! Below is the JSON I smushed for #1

txn.json

{ "inputs": [{ "prevout_hash":"e294c4c172c3d87991b0369e45d6af8584be92914d01e3060fad1ed31d12ff00", "prevout_n": 0, "value_sats": 129999867 }], "outputs": [{ "address": "2MsiAgG5LVDmnmJUPnYaCeQnARWGbGSVnr3", "value_sats": 10000000 },{ "address": "tb1q9l0rk0gkgn73d0gc57qn3t3cwvucaj3h8wtrlu", "value_sats": 20000000 },{ "address": "tb1qejqxwzfld7zr6mf7ygqy5s5se5xq7vmt96jk9x", "value_sats": 99999694 }]}

HWI

HWI is an unsung hero in my book. It's a very small clean and simple interface between HW wallets and Bitcoin Core. It currently supports a good range of HW wallets. It keeps itself narrowly focused on TXN signing and offloads most everything else to Bitcoin Core. Again, I'll assume you've imported your Trezor keypool into Core and done the requisite IBD and rescan. And if you don't have the RPC enabled, you can always clone these commands into the QT-console.
To sign our TXN in HWI (v1.1.2), we will first need to craft (and finalize) it in Bitcoin Core (0.21.1). Like in Electrum, we will have to use simple sed to smush some JSON into command arguments, but I'll assume you have that covered. It will take an inputs.json and an outputs.json named separately.
  1. bitcoin-cli createpsbt (create psbt)
  2. bitcoin-cli -rpcwallet= walletprocesspsbt (process psbt)
  3. hwi -f signtx (sign psbt)
  4. bitcoin-cli -rpcwallet= finalizepsbt (get a signed TXN from psbt)
A little more involved, but still nothing too bad. Plus this gives you the full power of Bitcoin Core including integrations with LND (lightning).

inputs.json

[{ "txid": "e294c4c172c3d87991b0369e45d6af8584be92914d01e3060fad1ed31d12ff00", "vout": 0 }]

outputs.json

[{ "2MsiAgG5LVDmnmJUPnYaCeQnARWGbGSVnr3": 0.10000000 },{ "tb1q9l0rk0gkgn73d0gc57qn3t3cwvucaj3h8wtrlu": 0.20000000 },{ "tb1qejqxwzfld7zr6mf7ygqy5s5se5xq7vmt96jk9x": 0.99999694 }]

Conclusion

This may all seem like very low level coding, but is surprisingly simple once you get a knack for it. Whats more, all these platforms support testnet which allows you to practice with valueless coins until you get the hang of it. And, like many things in bitcoin, this is all (mostly) python, which is one of the easier languages to learn.
Enjoy
Footnotes
1 - https://github.com/trezotrezor-firmware/issues/1296
submitted by brianddk to Bitcoin [link] [comments]

Windows / Linux Guide to using Trezor with Bitcoin Core (HWI)

This is a guide to using your Trezor with Bitcoin Core. It may seem like more trouble than it's worth but many applications use Bitcoin Core as a wallet such as LND, EPS, and JoinMarket. Learning how to integrate your Trezor into a Bitcoin Core install is rather useful in many unexpected ways. I did this all through the QT interfaces, but it's simple to script. There is a much simpler guide available from the HWI github, and the smallest Linux TLDR is here
Unfortunately, I don't have access to a Coldcard or Ledger. I'm not sure how the setpin or -stdinpass parameters are handled on that HW.

( A ) Install TrezorCTL, HWI, and build GUI

You only need to set the wallet up once, but may repeat to upgrade

( A.I ) Download extract and install HWI

  1. Download and isntall Python
  2. Download https://github.com/bitcoin-core/HWI/archive/1.1.2.zip
  3. Extract it to a working folder (assumes C:\User\Reddit\src\HWI)
  4. Change Directory (cd) to working folder cd "C:\User\Reddit\src\HWI"
  5. Setup venv python -m venv .venv
  6. Enter venv .venv\Scripts\activate.bat 1
  7. Install dependencies python -m pip install -U setuptools pip wheel
  8. Install TrezorCTL python -m pip install trezor[hidapi]
  9. Install HWI python -m pip install hwi pyside2
  10. Download github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z
  11. Extract MS64\dll\libusb-1.0.dll from the archive
  12. Copy to pywin copy libusb-1.0.dll .venv\Lib\site-packages\pywin32_system32\

( A.II ) Build the QT UI files

  1. Download and install MSYS2
  2. Launch a mingw64.exe shell
  3. CD to working folder cd "C:\User\Reddit\src\HWI"
  4. Enter venv source .venv/Scripts/activate 1
  5. Run UI build bash contrib/generate-ui.sh

( B ) Create a Trezor wallet in Bitcoin Core (testnet)

You only need to set the wallet up once, no private key data is stored, only xpub data

( B.I ) Retrieve keypool from HWI-QT

  1. Launch hwi-qt.exe --testnet (assuming testnet)
  2. Click Set passphrase (if needed) to cache your passphrase then click Refresh
  3. Select you trezor from the list then click Set Pin (if needed)
  4. Ensure your Trezor in the dropdown has a fingerprint
  5. Select Change keypool options and choose P2WPKH
  6. Copy all the text from the Keypool textbox

( B.II ) Create the wallet in Bitcoin QT

  1. Launch Bitcoin Core (testnet) (non-pruned) 2
  2. Select Console from the Window menu
  3. Create a wallet createwallet "hwi" true
  4. Ensure that hwi is selected in the console wallet dropdown
  5. Verify walletname using the getwalletinfo command
  6. Import keypool importmulti '' (note ' caging)
  7. Rescan if TXNs are missing rescanblockchain 3

( C.I ) Grab Tesnet coins

  1. Select the Receive tab in Bitcoin Core (testnet)
  2. Ensure that the Wallet dropdown has hwi selected
  3. Select Create new receiving address and copy address
  4. Google "bitcoin testnet faucet" and visit a few sites
  5. Answer captcha and input your addressed copied from C.I.3

( D ) Spending funds with HWI

This is how you can spend funds in your Trezor using Bitcoin Core (testnet)

( D.I ) Create an unsigned PSBT

  1. Select the Send tab in Bitcoin Core (testnet)
  2. Ensure that the Wallet dropdown has hwi selected
  3. Verify your balance in Watch-only balance
  4. Rescan if balance is wrong (see B.II.7) 3
  5. Craft your TXN as usual, then click Create Unsigned
  6. Copy the PSBT to your clipboard when prompted

( D.II ) Sign your PSBT

  1. In HWI-QT click Sign PSBT
  2. Paste what you copied in D.I.6 in PSBT to Sign field
  3. Click Sign PSBT
  4. Copy the text for PSBT Result

( D.III ) Broadcast your TXN

  1. Select the Console window in Bitcoin Core (testnet)
  2. Ensure that the Wallet dropdown has hwi selected
  3. Finalize PSBT: finalizepsbt
  4. Copy the signed TXN hex from the hex field returned
  5. Broadcast TXN: sendrawtransaction

Final Thoughts

I did this all through the GUI interfaces for the benefit of the Windows users. Windows console is fine, but the quote escaping in windows console is nightmarish. Powershell would be good, but that throws this on a whole another level for most Windows folks.
There is also the need to use HWI-QT due to a bug in blank passphrases on the commandline. You can work around it by toggling passphrase off or on, but again, it's more than I wanted to spell out.
Footnotes:
  • 1. - Later version of python put the activate script under 'bin' instead of 'Script'
  • 2. - You can run pruned, but you need to have a fresh wallet
  • 3. - Rescan is automatic on 'importmulti' but I was pruned so it was wierd
submitted by brianddk to Bitcoin [link] [comments]

The in my Cake wallet is not showing as a full or available balance.

I have tried changing the node and doing a rescans.
I opened the Cake wallet to check balance, close the wallet and get the Monero adress I'm sending to. I open Cake again and the balance is gone.
Been used bitcoin for over five years with no issues, never had constant problems like this. On Friday I had to contact support for a similar problem with coin not showing up in my wallet.
Any info welcome!
submitted by technicalextacy to cake_wallet [link] [comments]

Power of the Command Line (bitcoin-cli, hwi, electrum, trezorctl)

I think some of the console tools available with HW wallets today are greatly under utilized. Here's a quick write-up on how to create and sign a TXN very similar to 43d27...1fc06 found on the SLIP-14 wallet. I'll be using TrezorCTL, Electrum, and HWI for the signing. I won't go much into the setup or install, but feel free to ask if you have questions about it. Note, you don't have to use all three of these. Any one will produce a valid signed TXN for broadcast. I just showed how to do it three ways. Whats more some of the Electrum and HWI steps are interchangeable.

TrezorCTL

This is the what most would think of to use to craft and sign TXNs, and is definitely very simple. The signing uses a script called build_tx.py to create a JSON file that is then used by the btc sign-tx command. The whole process is basically:
  1. tools/build_tx.py | trezorctl btc sign-tx -
This just means, take the output of build_tx and sign it. To copy 43d27...1fc06, I wrote a small script to feed build_tx, so my process looks like:
  1. ~/input.sh | tools/build_tx.py | trezorctl btc sign-tx -
But it's all very simple. Note... I used TrezorCTL v0.12.2 but build_tx.py version 0.13.0 1.

input.sh

```

!/bin/bash

secho() { sleep 1; echo $*}
secho "Testnet" # coin name secho "tbtc1.trezor.io" # blockbook server and outpoint (below) secho "e294c4c172c3d87991b0369e45d6af8584be92914d01e3060fad1ed31d12ff00:0" secho "m/84'/1'/0'/0/0" # prev_out derivation to signing key secho "4294967293" # Sequence for RBF; hex(-3) secho "segwit" # Signature type on prev_out to use secho "" # NACK to progress to outs secho "2MsiAgG5LVDmnmJUPnYaCeQnARWGbGSVnr3" # out[0].addr secho "10000000" # out[1].amt secho "tb1q9l0rk0gkgn73d0gc57qn3t3cwvucaj3h8wtrlu" # out[1].addr secho "20000000" # out[1].amt secho "tb1qejqxwzfld7zr6mf7ygqy5s5se5xq7vmt96jk9x" # out[2].addr secho "99999694" # out[2].amt secho "" # NACK to progress to change secho "" # NACK to skip change secho "2" # txn.version secho "0" # txn.locktime ```

Electrum

Electrum is one of the better GUI wallets available, but it also has a pretty good console interface. Like before you need your Trezor with the SLIP-14 wallet loaded and paired to Electrum. I'll assume Electrum is up and running with the Trezor wallet loaded to make things simple.
Like with TrezorCTL, Electrum feeds on a JSON file, but unlike TrezorCTL it needs that JSON squished into the command line. This is a simple sed command, but I won't bore you with the details, but just assume that's done. So the process in Electrum (v4.0.3) looks like:
  1. electrum serialize (create psbt to sign)
  2. electrum --wallet signtransaction (sign said psbt)
Still pretty simple right! Below is the JSON I smushed for #1

txn.json

{ "inputs": [{ "prevout_hash":"e294c4c172c3d87991b0369e45d6af8584be92914d01e3060fad1ed31d12ff00", "prevout_n": 0, "value_sats": 129999867 }], "outputs": [{ "address": "2MsiAgG5LVDmnmJUPnYaCeQnARWGbGSVnr3", "value_sats": 10000000 },{ "address": "tb1q9l0rk0gkgn73d0gc57qn3t3cwvucaj3h8wtrlu", "value_sats": 20000000 },{ "address": "tb1qejqxwzfld7zr6mf7ygqy5s5se5xq7vmt96jk9x", "value_sats": 99999694 }]}

HWI

HWI is an unsung hero in my book. It's a very small clean and simple interface between HW wallets and Bitcoin Core. It currently supports a good range of HW wallets. It keeps itself narrowly focused on TXN signing and offloads most everything else to Bitcoin Core. Again, I'll assume you've imported your Trezor keypool into Core and done the requisite IBD and rescan. And if you don't have the RPC enabled, you can always clone these commands into the QT-console.
To sign our TXN in HWI (v1.1.2), we will first need to craft (and finalize) it in Bitcoin Core (0.21.1). Like in Electrum, we will have to use simple sed to smush some JSON into command arguments, but I'll assume you have that covered. It will take an inputs.json and an outputs.json named separately.
  1. bitcoin-cli createpsbt (create psbt)
  2. bitcoin-cli -rpcwallet= walletprocesspsbt (process psbt)
  3. hwi -f signtx (sign psbt)
  4. bitcoin-cli -rpcwallet= finalizepsbt (get a signed TXN from psbt)
A little more involved, but still nothing too bad. Plus this gives you the full power of Bitcoin Core including integrations with LND (lightning).

inputs.json

[{ "txid": "e294c4c172c3d87991b0369e45d6af8584be92914d01e3060fad1ed31d12ff00", "vout": 0 }]

outputs.json

[{ "2MsiAgG5LVDmnmJUPnYaCeQnARWGbGSVnr3": 0.10000000 },{ "tb1q9l0rk0gkgn73d0gc57qn3t3cwvucaj3h8wtrlu": 0.20000000 },{ "tb1qejqxwzfld7zr6mf7ygqy5s5se5xq7vmt96jk9x": 0.99999694 }]

Conclusion

This may all seem like very low level coding, but is surprisingly simple once you get a knack for it. Whats more, all these platforms support testnet which allows you to practice with valueless coins until you get the hang of it. And, like many things in bitcoin, this is all (mostly) python, which is one of the easier languages to learn.
Enjoy
Footnotes
1 - https://github.com/trezotrezor-firmware/issues/1296
submitted by brianddk to TREZOR [link] [comments]

Have a wallet.dat from a mining pool back around 2010. Had coins on it but can't get it open. Can anyone help me out?

Back around 2010/2011 I mined some bitcoins using one of those mining pools. I've tried to figure out which I used, but can't. I kept the wallet.dat even after all these years but have long forgotten the password.
So do I have any hope of getting this thing opened up? Only thing I've tried in the last 5 years has been right now. I've downloaded bitcoin core, created a wallet, shut it down, swapped out the new wallet.dat with a copy of the wallet.dat with coins trapped away in it and when I opened the btc core program back up and went to console I typed in "-salvagewallet" which gave me a "Method not found (code -32601)" error.

thanks for any help.

Edit: My old wallet.dat file is only 104Kb in size. I notice the newer ones are over 1000Kb. Was that normal for 2010/2011?
submitted by ColeSloth to Bitcoin [link] [comments]

Windows Guide to using Trezor with Bitcoin Core (HWI)

This is a guide to using your Trezor with Bitcoin Core. It may seem like more trouble than it's worth but many applications use Bitcoin Core as a wallet such as LND, EPS, and JoinMarket. Learning how to integrate your Trezor into a Bitcoin Core install is rather useful in many unexpected ways. I did this all through the QT interfaces, but it's simple to script. There is a much simpler guide available from the HWI github, and the smallest TLDR is here

( A ) Install TrezorCTL, HWI, and build GUI

You only need to set the wallet up once, but may repeat to upgrade

( A.I ) Download extract and install HWI

  1. Download and isntall Python
  2. Download https://github.com/bitcoin-core/HWI/archive/1.1.2.zip
  3. Extract it to a working folder (assumes C:\User\Reddit\src\HWI)
  4. Change Directory (cd) to working folder cd "C:\User\Reddit\src\HWI"
  5. Setup venv python -m venv .venv
  6. Enter venv .venv\Scripts\activate.bat 1
  7. Install dependencies python -m pip install -U setuptools pip wheel
  8. Install TrezorCTL python -m pip install trezor[hidapi]
  9. Install HWI python -m pip install hwi pyside2
  10. Download github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z
  11. Extract MS64\dll\libusb-1.0.dll from the archive
  12. Copy to pywin copy libusb-1.0.dll .venv\Lib\site-packages\pywin32_system32\

( A.II ) Build the QT UI files

  1. Download and install MSYS2
  2. Launch a mingw64.exe
  3. CD to working folder cd "C:\User\Reddit\src\HWI"
  4. Enter venv source .venv/Scripts/activate 1
  5. Run UI build bash contrib/generate-ui.sh

( B ) Create a Trezor wallet in Bitcoin Core (testnet)

You only need to set the wallet up once, no private key data is stored, only xpub data

( B.I ) Retrieve keypool from HWI-QT

  1. Launch hwi-qt.exe --testnet (assuming testnet)
  2. Click Set passphrase (if needed) to cache your passphrase then click Refresh
  3. Select you trezor from the list then click Set Pin (if needed)
  4. Ensure your Trezor in the dropdown has a fingerprint
  5. Select Change keypool options and choose P2WPKH
  6. Copy all the text from the Keypool textbox

( B.II ) Create the wallet in Bitcoin QT

  1. Launch Bitcoin Core (testnet) (non-pruned) 2
  2. Select Console from the Window menu
  3. Create a wallet createwallet "hwi" true
  4. Ensure that hwi is selected in the console wallet dropdown
  5. Verify walletname using the getwalletinfo command
  6. Import keypool importmulti '' (note ' caging)
  7. Rescan if TXNs are missing rescanblockchain 3

( C.I ) Grab Tesnet coins

  1. Select the Receive tab in Bitcoin Core (testnet)
  2. Ensure that the Wallet dropdown has hwi selected
  3. Select Create new receiving address and copy address
  4. Google "bitcoin testnet faucet" and visit a few sites
  5. Answer captcha and input your addressed copied from C.I.3

( D ) Spending funds with HWI

This is how you can spend funds in your Trezor using Bitcoin Core (testnet)

( D.I ) Create an unsigned PSBT

  1. Select the Send tab in Bitcoin Core (testnet)
  2. Ensure that the Wallet dropdown has hwi selected
  3. Verify your balance in Watch-only balance
  4. Rescan if balance is wrong (see B.II.7) 3
  5. Craft your TXN as usual, then click Create Unsigned
  6. Copy the PSBT to your clipboard when prompted

( D.II ) Sign your PSBT

  1. In HWI-QT click Sign PSBT
  2. Paste what you copied in D.I.6 in PSBT to Sign field
  3. Click Sign PSBT
  4. Copy the text for PSBT Result

( D.III ) Broadcast your TXN

  1. Select the Console window in Bitcoin Core (testnet)
  2. Ensure that the Wallet dropdown has hwi selected
  3. Finalize PSBT: finalizepsbt
  4. Copy the signed TXN hex from the hex field returned
  5. Broadcast TXN: sendrawtransaction

Final Thoughts

I did this all through the GUI interfaces for the benefit of the Windows users. Windows console is fine, but the quote escaping in windows console is nightmarish. Powershell would be good, but that throws this on a whole another level for most Windows folks.
There is also the need to use HWI-QT due to a bug in blank passphrases on the commandline. You can work around it by toggling passphrase off or on, but again, it's more than I wanted to spell out.
Footnotes:
  • 1. - Later version of python put the activate script under 'bin' instead of 'Script'
  • 2. - You can run pruned, but you need to have a fresh wallet
  • 3. - Rescan is automatic on 'importmulti' but I was pruned so it was wierd
submitted by brianddk to TREZOR [link] [comments]

Coins possibly stuck in tumbler

I believe some of my coins may be stuck because the tumbler crashed before completing. I use the UI to access my wallet and run the tumber, however it says that I have very little coins while bitcoin core is showing much more in watch only.
I looked on reddit for any possible fixes and I was told to run this:
 python wallet-tool.py -m 15 my-wallet-file.json 
The commenter said that the coins are most likely stuck in a higher mixdepth so running this will increase the maximum mixdepth. Unfortunately this doesn't appear to do anything for me, or I'm just not smart enough to see what was done. I've included what happens when I run this command below
(jmvenv) [email protected]:~/joinmarket-clientservescripts$ python wallet-tool.py -m 15 wallet.json User data location: /home/caleb/.joinmarket/ Enter wallet decryption passphrase: Traceback (most recent call last): File "wallet-tool.py", line 9, in  jmprint(wallet_tool_main("wallets"), "success") File "/home/caleb/joinmarket-clientservejmclient/jmclient/wallet_utils.py", line 1242, in wallet_tool_main wallet_password_stdin=options.wallet_password_stdin, gap_limit=options.gaplimit) File "/home/caleb/joinmarket-clientservejmclient/jmclient/wallet_utils.py", line 1133, in open_test_wallet_maybe return open_wallet(path, mixdepth=max_mixdepth, **kwargs) File "/home/caleb/joinmarket-clientservejmclient/jmclient/wallet_utils.py", line 1179, in open_wallet wallet = wallet_cls(storage, **kwargs) File "/home/caleb/joinmarket-clientservejmclient/jmclient/wallet.py", line 1031, in __init__ super(ImportWalletMixin, self).__init__(storage, **kwargs) File "/home/caleb/joinmarket-clientservejmclient/jmclient/wallet.py", line 1282, in __init__ super(BIP32Wallet, self).__init__(storage, **kwargs) File "/home/caleb/joinmarket-clientservejmclient/jmclient/wallet.py", line 335, in __init__ .format(self.max_mixdepth)) Exception: Effective max mixdepth must be at most 4! 
Any suggestions would be appreciated.
submitted by DecentMidLaner to joinmarket [link] [comments]

How-to: setup your multisignature Cold wallet in Bitcoin Core 0.20 (highest security setup)

Last release of Core is amazing !
The main new feature is sortedmulti descriptor. This allows you to import your multisig setup in Core almost as if it was Electrum when combine to the new PSBT export in GUI !
As it needs command line and some weird checksum, you also need to input very long command in the console and if you made a mistake, you cannot copy the last command you made. So take your time when the commands are long to check everything and don't miss anything, use copy paste before validating the long command. You only have to do this once fortunately :)
I detail here how you do it with a k of n setup, good luck:
And you are DONE ! You should get the exact same addresses than Electrum and you can created receiving addresses in Qt ! To send money, just go to the send section, use the new coin control feature and export a partially signed transaction. You can use HWI or Electrum to sign it with your hardware wallets !
Notice: You can import more or less than 2000 addresses of each type. If less, blockchain rescan is faster but you may need to redo what we have done here later when all addresses will have been used once. If more, it is the contrary.

You now have the most possibly secure setup in one software: multisig with hardware on the full node wallet. When Bitcoin Core 0.21.0 will be out, we will also have native descriptor wallet so maybe we will have HD version of this. But for now, this is the best you can do ! Enjoy :)

P.S. : if you like doing things in one shot you can do the last two steps in one big command: importmulti '[{"desc": "wsh(sortedmulti(k,[path1]xpub1.../0/*,[path2]xpub2.../0/*,...,[pathn]xpubn/0/*))#check_sum0", "timestamp": birth_timestamp, "range": [0,2000], "watchonly": true, "keypool": true}, {"desc": "wsh(sortedmulti(k,[path1]xpub1.../1/*,[path2]xpub2.../1/*,...,[pathn]xpubn/1/*))#check_sum1", "timestamp": birth_timestamp, "range": [0,2000], "watchonly": true, "internal": true}]'
submitted by Pantamis to Bitcoin [link] [comments]

Another one (old wallet recovery)

Hey everyone,
I've been out of the crypto game for a long time, but managed to dig up a wallet that I had stored on an old PC from early 2015. It wouldn't have much in it, maybe a few BTC at most, but it would be nice to recover it and cash out. The machine had Bitcoin Core installed, hasn't been connected to the internet since 2015, and is currently interstate - I've copied wallet.dat and that's all I have access to for now. The wallet is encrypted, backed up, copied to multiple secure locations, etc, and I remember the passphrase, but from what I've read in other threads, the private keys are the important part and I may need to do a "key dump"?
I tried installing Electrum and importing the wallet, but Electrum doesn't recognise the file. Am I right in thinking that the following would be the best solution?
  1. Download and install Bitcoin Core.
  2. Place wallet.dat into the appropriate directory.
  3. Open Bitcoin Core and allow it to "catch up" and download 240 GB worth of blockchain history.
  4. Possibly be forced to input the passphrase to access the wallet again, and transfer BTC out to an exchange of my choosing (unsure if this is how it would work at this stage).
Is there a way to recover the wallet without being forced to download hundreds of GB worth of data? I live in Australia, with typical Australia-tier internet, and it could quite literally take up to a week to download.
Apologies if there's any shortfall of knowledge on my end of things, it's been a long time since I've kept up with crypto and things seem to have changed quite a bit over the last four years. I appreciate any advice, and y'all are welcome to shame me on my relative ignorance, lol. Thanks!
submitted by ChronicLoser to Bitcoin [link] [comments]

All my BCH was stolen and I cant figure out why.

UPDATE!!! I RECOVERED MY BCH!!! YOU NEED TO RESCAN YOUR ADDRESSES IN THE WALLET-SPECIFIC SETTINGS IF YOU UPDATE THE BITCOIN.COM MOBILE WALLET.
Boy that was a great learning experience. THANK YOU GUYS SO MUCH FOR HELPING <333333
*WHAT ACTUALLY HAPPENED IN SUMMARY: I was sending my friend free bch as I want to help him make his own special coin as an intro to the crypto world, and by this point I didn't pay attention to my balance. Then I remember to update the wallet for the upgrade for slp tokens, and when I saw my wallet it had most transactions I remember making but not all, and the last recorded one was one that emptied my whole balance to a random address! So I was startled and couldn't figure out what could have happened since it seemed obviously fully synced! But with the help of an awesome community member I learned it could have not resynced properly... And watya know. It resynced properly. Hours later I was confirmed by the bitcoin.com wallet support too, to find the resync feature to most likely recover the funds. ✔️

I was sending a friend his first crypto (BCH) to make a SLP token for him and it was super sweet, and then I noticed all my money was gone. It had been all sent out at a random time a month ago that I certainly don't remember moving any BCH or crypto at all. Anything I can do? It was a great introduction to crypto to my friends who are getting inspired.

Because I dont know how i did anything wrong I'm seriously freaked out about how I'm possibly supposed to hold even 100$ worth of crypto on a mobile wallet.
details: bitcoin.com wallet, bitcoin redeemed from bitcoin.com golden ticket giveaway by swiping a paper wallet, never used the BCH seed phrase anywhere else but the app that made it.
edit* grammatical and THANK YOU for trying to help me figure this out, I hope I'm mistaken.
submitted by mrherbichimp to Bitcoincash [link] [comments]

Standalone Bitcoin Offline Wallet Printer Demo - YouTube Exodus Software Wallet: quick tip to rescan blockchain (this wasn't obvious to me at first) Blockchain Wallet - YouTube Blockchain rescan - eMark Android Test Scanning my Stainless Steel Bitcoin Wallet - YouTube

The bitcoin client stores, in the wallet, the transactions that affect coins it manages. If it sees a new transaction, it checks to see if that transaction affects any accounts stored in the wallet. If so, the wallet is updated. Similarly, if the chain is reorganized, the wallet is updated. However, the client doesn't check to make sure the wallet is synchronized to the current block chain. To ... If the doors on the bank are left wide open then anyone can steal your coins. To secure your Litecoin Wallet completely you simply need to carry out the following 1) First of all make sure that your Wallet is encrypted. You can do this by clicking on Settings - Encrypt Wallet a . trending; Bitcoin Qt Rescan Bitcoin . Bitcoin Qt Rescan . Apr 8, 2018 DTN Staff. twitter. pinterest. google plus ... This brings the behaviour of the import* calls closer to importmulti. After this change, the difference between importmulti and the other import* calls is that in importmulti you can "opt-out" of scanning early blocks by setting a later timestamp. that in importmulti the wallet will successfully import the data, but fail to rescan. Whereas in the other calls, the wallet will abort before ... With BIP157 you can cache block filters locally to use later for rescans in the case you need to restore your wallets. Our chain project gives us an API with the ability to query for filters.. You can rescan your wallet with filters with WalletApi.rescanNeutrinoWallet(). Example. To run this example you need to make sure you have access to a bitcoind binary. How To Rescan Bitcoin Wallet Bitcoin . How To Rescan Bitcoin Wallet . Apr 16, 2018 DTN Staff. twitter. pinterest. google plus. facebook. Fixing Unconfirmed Zero Confirmation Transactions ...

[index] [7374] [23700] [7682] [40747] [46054] [36647] [30796] [8725] [49228] [31653]

Standalone Bitcoin Offline Wallet Printer Demo - YouTube

Test Scanning my Stainless Steel Bitcoin Wallet BITCOIN PRICE , BITCOIN FUTURE in doubt http://youtu.be/eO-yrpQpIT8 What is NAMECOIN BITCOIN'S First Fork htt... Wenn die Android Wallet sich einmal verschluckt hat, muss die Blockchain einfach nochmal neu synchronisiert werden. Die eMark Wallet ist bei Google Play Store verfügbar https://play.google.com ... Bitcoin Wallet Recovery BITCOIN PRICE , BITCOIN FUTURE in doubt http://youtu.be/eO-yrpQpIT8 What is NAMECOIN BITCOIN'S First Fork http://youtu.be/oBkhPhu3_B4 Standalone Bitcoin Offline Wallet Printer This is a demo of a protoype bitcoin paper wallet printer I have built. bitcoin bitcoin value bitcoin exchange rate... In this video we demonstrate how to perform a wallet rescan to show the accurate balance in your wallet. This process also works for several other Bitcoin wallets. You can find the rest of our ...

#