Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: premoguy on November 29, 2020, 05:16:38 PM



Title: Core balance 0, blockchain shows 1 btc, private key dump is empty
Post by: premoguy on November 29, 2020, 05:16:38 PM
Hi all, hope someone can help me with this.

After installing core and messing with it for a while, I sent some btc to test it out.  I was able to send this btc from core with no incident, or so I thought.  Apparently I let those transactions expire with too low of fee.  Anyway, I sent a whole btc to the same receiving address. Here is the public key
https://www.blockchain.com/btc/address/bc1qpn4z80zls524lv94nt3mpdhlf3s6qz5u2pv4fd

Bitcoin-qt shows the incoming transaction, along with the previous incoming and 2 outgoing.  The amount should at least add up to the second deposited amount, but the available balance says 0.  Core is unaware of how to spend these btc now, apparently.  I have dumped the keys and imported the private key associated with the above address - no coins.

The master private key also shows 0 transactions.  I have rescanned, zapped, and rescanned again.  I have downloaded the entire blockchain again.  QT shows the transactions I made and received but shows 0 balance, and bitcoind shows no evidence of any transactions.  Can anyone tell me how to access this Bitcoin?

I am on ubuntu 20.04.1.  I installed Bitcoin core in May.  Thanks for any help you can give!


Title: Re: Core balance 0, blockchain shows 1 btc, private key dump is empty
Post by: LoyceV on November 29, 2020, 05:32:22 PM
I have dumped the keys and imported the private key associated with the above address - no coins.
I've never tested importing a Bech32 private key into Bitcoin Core. I know this works in Electrum:
For P2WPKH addresses (Bech32, starting with 'bc1')
This time we'll add p2wpkh: in front of the private key.
For example
Code:
p2wpkh:5PrivateKey
This should generate the corresponding Bech32 address

Just to be sure: is bc1qpn4z80zls524lv94nt3mpdhlf3s6qz5u2pv4fd part of your Bitcoin Core wallet?


Title: Re: Core balance 0, blockchain shows 1 btc, private key dump is empty
Post by: ranochigo on November 29, 2020, 06:17:34 PM
Not that I really would recommend it but it does seem to be something out of the ordinary. Would you consider using coinb.in to script a transaction and sign it using your client to send it to another wallet that you know you control? You'll need a little technical knowledge to do that though, could be slightly risky so you could experiment spending a tiny amount first.

I don't think I have experienced/seen Bitcoin Core not showing the balance, especially when it sees the transaction. I consider that one of the last resort if you still can't access it after following Loyce's advice.


Title: Re: Core balance 0, blockchain shows 1 btc, private key dump is empty
Post by: khaled0111 on November 29, 2020, 06:49:01 PM
The sending and receiving addresses are from different formats so they doesn't belong to tge same wallet!
First, pls answer LoyceV's question. To check if "bc1qpn4z80zls524lv94nt3mpdhlf3s6qz5u2pv4fd"
The good news is that the balance hasn't been moved, so if that address belongs to your wallet all you have to do is to dump its private key and import it into another wallet such as Electrum.

After installing core and messing with it for a while, I sent some btc to test it out.
If you want to yest out how bitcoin core works and familiarize yourself with it, you should do it on the testnet.


Title: Re: Core balance 0, blockchain shows 1 btc, private key dump is empty
Post by: premoguy on November 29, 2020, 06:54:06 PM
Hi, thanks for the quick reply.  (edit - had a whole reply posted)

I know this works in Electrum:

And right you are.  Thanks!   I should learn a bit more about bech32 apparently