Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: markzenn11 on December 26, 2019, 04:15:30 AM



Title: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 04:15:30 AM
how to restore my bitcoins and spending it? i imported everything like all keys needed to ubuntu linux json rpc bitcoin core 0.18.0.0.
after i did all of that, my bitcoins appeared after -getinfo command. how to spend my bitcoins like sending it to another bitcoin address? im using windows 10 pro 64bit.


Title: Re: restoring and spending bitcoin
Post by: nc50lc on December 26, 2019, 05:13:34 AM
Just let Bitcoin-qt sync (speed depending on your hardware and ISP)
and after that, you can send your fund using the "send" tab.

Alternatively, you can import those private keys / extended private master key (xprv...) to Electrum.
Use 'Import Bitcoin addresses or private keys' for prv keys | 'Standard wallet-> Use a master key' if you have the extended key to create the wallet.


Title: Re: restoring and spending bitcoin
Post by: Abdussamad on December 26, 2019, 05:21:23 AM
there's a backup wallet option in the file menu of bitcoin qt. then you simply place the backup file in a directory of it's own on the other PC and when you run bitcoin qt for the first time there it'll ask you to set the location of the data dir so you point it to that directory. then wait for it to download and verify  the blockchain.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 05:25:49 AM
Just let Bitcoin-qt sync (speed depending on your hardware and ISP)
and after that, you can send your fund using the "send" tab.

Alternatively, you can import those private keys / extended private master key (xprv...) to Electrum.
Use 'Import Bitcoin addresses or private keys' for prv keys | 'Standard wallet-> Use a master key' if you have the extended key to create the wallet.
how to do it? do i have to download the files from the ubuntu linux  json rpc bitcoin core. and how to apply it to bitcoin core windows 64 wallet?
to remind you that the files came from the json rpc, i installed bitcoin core 0.18.0 there, after everything ive done, by -getinfo command. the balance appeared there in rpc. my question is how and what should i do to send the said bitcoins balance to another btc address like i will spend my btc? help me please.


Title: Re: restoring and spending bitcoin
Post by: bL4nkcode on December 26, 2019, 05:44:21 AM
Just let Bitcoin-qt sync (speed depending on your hardware and ISP)
and after that, you can send your fund using the "send" tab.
how to do it? do i have to download the files from the ubuntu linux  json rpc bitcoin core. and how to apply it to bitcoin core windows 64 wallet?
What he means is wait until your core completely sync and downloaded the whole bitcoin blockchain.

If you have your private keys besides the json rpc you can import it to updated electrum wallet (desktop or android) so you can spend your funds.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 06:16:25 AM
Just let Bitcoin-qt sync (speed depending on your hardware and ISP)
and after that, you can send your fund using the "send" tab.
how to do it? do i have to download the files from the ubuntu linux  json rpc bitcoin core. and how to apply it to bitcoin core windows 64 wallet?
What he means is wait until your core completely sync and downloaded the whole bitcoin blockchain.

If you have your private keys besides the json rpc you can import it to updated electrum wallet (desktop or android) so you can spend your funds.
Do i need to dumpwallet my latest keys in my rpc then import it all to latest updated electrum wallet?


Title: Re: restoring and spending bitcoin
Post by: Stedsm on December 26, 2019, 07:38:59 AM
Do i need to dumpwallet my latest keys in my rpc then import it all to latest updated electrum wallet?

If dumpwallet does the job by exporting your private keys to you in a file, then yes, you just need to

Use 'Import Bitcoin addresses or private keys' for prv keys | 'Standard wallet-> Use a master key' if you have the extended key to create the wallet.

And you are done. All you need to do is wait for Electrum to sync as it will not download the whole Blockchain data on your PC and rather uses their server to gather the information while you can still do the transactions, almost immediately every time you open your wallet.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 08:18:16 AM
i will try every advice you all. i will post the result in the future if everything helps. it will take sometime. thanks to you all.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 12:31:20 PM
here's what i did. i backed up my ubuntu json rpc bitcoin core 0,18.0 wallet.dat and downloaded it using winscp to my windows 64 bit pc. i change the existing wallet.dat file of my bitcoin core windows 64 %appdata% folder in wallet with the one i downloaded from rpc. i then started bitcoin core 0.18.0 in my win10 64 pc using 'C:\Program Files\Bitcoin>bitcoin-qt.exe" -rescan,After the force rescan i input the passphrase and the system accepted it. and i also put gettxoutsetinfo and rescan it. my question is. After doing all these is there any possibilities that my balance won't show after rescan? rescan still in progress. what do you suggest if the btc balance still wont appear to my bitcoin core win10 x64 wallet. If so, please break everything down for me step by step so that i can do it properly. thank you


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 12:51:17 PM
here's what i did. i backed up my ubuntu json rpc bitcoin core 0,18.0 wallet.dat and downloaded it using winscp to my windows 64 bit pc. i change the existing wallet.dat file of my bitcoin core windows 64 %appdata% folder in wallet with the one i downloaded from rpc. i then started bitcoin core 0.18.0 in my win10 64 pc using 'C:\Program Files\Bitcoin>bitcoin-qt.exe" -rescan,After the force rescan i input the passphrase and the system accepted it. and i also put gettxoutsetinfo and rescan it. my question is. After doing all these is there any possibilities that my balance won't show after rescan? rescan still in progress. what do you suggest if the btc balance still wont appear to my bitcoin core win10 x64 wallet. If so, please break everything down for me step by step so that i can do it properly. thank you

here's what my rpc looks like
https://c.imge.to/2019/12/26/vKl8UG.png

and this what my bitcoin core wallet is doing right now
https://b.imge.to/2019/12/26/vKlJt1.png


Title: Re: restoring and spending bitcoin
Post by: nc50lc on December 26, 2019, 01:07:39 PM
-snip- After doing all these is there any possibilities that my balance won't show after rescan? rescan still in progress. what do you suggest if the btc balance still wont appear to my bitcoin core win10 x64 wallet. If so, please break everything down for me step by step so that i can do it properly. thank you
If your W10 PC's Bitcoin Core isn't fully synced, there's a chance that the balance wont show.
But if it was synced, you can just proceed to send your Bitcoins after finishing rescan.
Based from your screenshot, it looks good and just a few blocks away.

If you want to useknow the "alternative" that I've mentioned above, it's about using dumpwallet command to get the "extended private master key" or private keys then import them to Electrum:
  • Start 'Bitcoin-qt' as administrator, then open 'window->console'
  • Enter dumpwallet keys.txt (you can change 'keys' into any name that you want)
  • Go to the installation directory of your Bitcoin core and find "keys.txt", open it and find the addresses' private keys, list of strings that start with 'K' or 'L'.
  • Download Electrum Windows Stand-alone Executable from electrum.org (https://electrum.org/#download)
|
  • -snip- (can't restore hardened derivation path using xprv dump to Electrum)
  • If your addresses starts with '3' or 'bc1', you'll need to import each prv keys to electrum using the option "Import Bitcoin addresses or private keys" by pasting each keys per line using:
    p2wpkh-p2sh:YOUR_Private_key if your addresses starts with '3'
    p2wpkh:YOUR_Private_key if your addresses starts with 'bc1'


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 02:19:13 PM
-snip- After doing all these is there any possibilities that my balance won't show after rescan? rescan still in progress. what do you suggest if the btc balance still wont appear to my bitcoin core win10 x64 wallet. If so, please break everything down for me step by step so that i can do it properly. thank you
If your W10 PC's Bitcoin Core isn't fully synced, there's a chance that the balance wont show.
But if it was synced, you can just proceed to send your Bitcoins after finishing rescan.
Based from your screenshot, it looks good and just a few blocks away.

If you want to useknow the "alternative" that I've mentioned above, it's about using dumpwallet command to get the "extended private master key" or private keys then import them to Electrum:
  • Start 'Bitcoin-qt' as administrator, then open 'window->console'
  • Enter dumpwallet keys.txt (you can change 'keys' into any name that you want)
  • Go to the installation directory of your Bitcoin core and find "keys.txt", open it and find something like "# extended private masterkey: xprv****" or the addresses' private keys, list of strings that start with 'K' or 'L'.
  • Download Electrum Windows Stand-alone Executable from electrum.org (https://electrum.org/#download)
|
  • Now you have two options, if your addresses starts with '1', you can use the xprv: Open Electrum and create a new wallet using the option: "Standard wallet->Use a master key", paste your master private key and create the wallet.
  • If your addresses starts with '3' or 'bc1', you'll need to import each prv keys to electrum using the option "Import Bitcoin addresses or private keys" by pasting each keys per line using:
    p2wpkh-p2sh:YOUR_Private_key if your addresses starts with '3'
    p2wpkh:YOUR_Private_key if your addresses starts with 'bc1'

have you noticed that i did input the command rescanblockchan twice? i did rescan again. can i cancel the second rescan? is it safe to do that?


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 03:06:45 PM
there's a backup wallet option in the file menu of bitcoin qt. then you simply place the backup file in a directory of it's own on the other PC and when you run bitcoin qt for the first time there it'll ask you to set the location of the data dir so you point it to that directory. then wait for it to download and verify  the blockchain.

i follow your instructions above but halfway through it, my internet connection  dropped. i carried my pc literally to another location and proceeded. is it ok to do that? does it affect to my wallet like seeds or whatever it is?


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 26, 2019, 03:18:41 PM
i will give one bitcoin to the method that will work. give me step by step instructions starting from my only files were in my ubuntu linux rpc with installed bitcoin core 0.18.0 running in VPS. what i need to know is how to transfer the bitcoins from that vps to my desktop pc win 10 x64 bitcoin core 0.18.0 wallet and spend it.


Title: Re: restoring and spending bitcoin
Post by: Btcspot on December 26, 2019, 07:19:20 PM
 Hi mark i know a method that will help. Send me a message from here thanks.


Title: Re: restoring and spending bitcoin
Post by: 2double0 on December 26, 2019, 08:00:46 PM
i will give one bitcoin to the method that will work. give me step by step instructions starting from my only files were in my ubuntu linux rpc with installed bitcoin core 0.18.0 running in VPS. what i need to know is how to transfer the bitcoins from that vps to my desktop pc win 10 x64 bitcoin core 0.18.0 wallet and spend it.

Copy your wallet.dat file from the directory in your VPS, save it on your cloud keeping it password protected or use a new service. You will have your coins in your PC after you replace your wallet.dat file with the one you will have in your PC after installing bitcoin core in it. Rescan after this, wait for the Blockchain to download completely and then you can spend your BTC by using the "Send" feature in the wallet.

Note: You can only see your spendable coins after the whole Blockchain 'till the block your coins were stored from, in your wallet', is downloaded.


Title: Re: restoring and spending bitcoin
Post by: HCP on December 26, 2019, 08:57:44 PM
Using Bitcoin Core v0.19 on your Windows 10 machine, it should be as simple as:

1. Copy wallet.dat from VPS to Windows 10 Bitcoin Core datadir, but name it to something other than "wallet.dat"... eg. rename the copy to vps_wallet.dat
2. Run Bitcoin Core on your Windows 10 machine and let it fully sync.
3. Once fully synced, use "File -> Open Wallet -> vps_wallet.dat"

Bitcoin Core will then open and rescan the new wallet automatically. NOTE: it might take a looooong time for the rescan to finish.

Once finished, you should be able to see all the transactions/balance of vps_wallet.dat and be able to spend them (assuming that the vps_wallet.dat actually contains private keys)


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 27, 2019, 02:44:24 PM
Using Bitcoin Core v0.19 on your Windows 10 machine, it should be as simple as:

1. Copy wallet.dat from VPS to Windows 10 Bitcoin Core datadir, but name it to something other than "wallet.dat"... eg. rename the copy to vps_wallet.dat
2. Run Bitcoin Core on your Windows 10 machine and let it fully sync.
3. Once fully synced, use "File -> Open Wallet -> vps_wallet.dat"

Bitcoin Core will then open and rescan the new wallet automatically. NOTE: it might take a looooong time for the rescan to finish.

Once finished, you should be able to see all the transactions/balance of vps_wallet.dat and be able to spend them (assuming that the vps_wallet.dat actually contains private keys)

where should i put eg vps_wallet.dat file? in bitcoin core program files or in my bitcoin core files wallet folder?


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 27, 2019, 04:40:15 PM
can i send bitcoins via ubuntu linux rpc VPS directly to any bitcoin address? what should i put in my bitcoin conf in my vps rpc to be able to send bitcoins directly there if it's possible?


Title: Re: restoring and spending bitcoin
Post by: Btcspot on December 27, 2019, 07:22:57 PM
 Hi, did you try my method. The location to put the wallet.dat file is C:/users/Your username/Appdata/Roaming/Bitcoin/wallets.  This is location for win.  Bitcoin's data folder will open. For most users, this is the following locations:

C:\Users\YourUserName\Appdata\Roaming\Bitcoin (Vista and win 8,10)


Title: Re: restoring and spending bitcoin
Post by: HCP on December 27, 2019, 08:22:22 PM
where should i put eg vps_wallet.dat file? in bitcoin core program files or in my bitcoin core files wallet folder?
You should put it in the bitcoin core files wallet folder (where the other wallet.dat file is on your Windows machine)


can i send bitcoins via ubuntu linux rpc VPS directly to any bitcoin address? what should i put in my bitcoin conf in my vps rpc to be able to send bitcoins directly there if it's possible?
I don't see why you can't just send the bitcoins directly from the VPS, if all you want is to just move them. I don't think you need to put anything into the bitcoin.conf file on the vps... you just use one of the various methods for creating/sending transactions... like the sendtoaddress rpc command. refer: https://bitcoincore.org/en/doc/0.18.0/rpc/wallet/sendtoaddress/



Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 28, 2019, 07:32:55 AM
Using Bitcoin Core v0.19 on your Windows 10 machine, it should be as simple as:

1. Copy wallet.dat from VPS to Windows 10 Bitcoin Core datadir, but name it to something other than "wallet.dat"... eg. rename the copy to vps_wallet.dat
2. Run Bitcoin Core on your Windows 10 machine and let it fully sync.
3. Once fully synced, use "File -> Open Wallet -> vps_wallet.dat"

Bitcoin Core will then open and rescan the new wallet automatically. NOTE: it might take a looooong time for the rescan to finish.

Once finished, you should be able to see all the transactions/balance of vps_wallet.dat and be able to spend them (assuming that the vps_wallet.dat actually contains private keys)

i tried "File -> Open Wallet -> vps_wallet.dat"
https://b.imge.to/2019/12/28/vWNnsf.png

ive tried several times actually


Title: Re: restoring and spending bitcoin
Post by: HCP on December 28, 2019, 09:43:02 AM
You'll need to check the debug.log file in the Bitcoin Core "datadir" to see if you can identify the error... it's just a text file, so you should be able to open with any text editor like Notepad++ (or even windows Notepad).

You could try posting as much of the end of that file as you can on pastebin.com and then link the unique generated pastebin URL here.

Additionally, you might want to check the Windows Event Viewer (Press "Start", Type: Event Viewer), then look under "Windows Logs" -> "Application"... and have a hunt through the list for "Errors" relating to Bitcoin-qt.

Hopefully, one or both of those logs will give the reason why it keeps crashing when it is attempting to load the vps_wallet.dat.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 30, 2019, 10:43:00 AM
its been two days since i made  two transactions, sending 400 btc to a single wallet address and 0.35856000 btc to the other. those two transactions still unconfirmed up to this time. is this normal? i paid 0.00054440 BTC fee for the 400 btc and 0.00025040 btc to the other. what should i do? do i have just to wait for the confirmations? by the way, opening wallet eg vps_wallet.dat works. the only problem to me is the confirmation.

https://c.imge.to/2019/12/30/vePEiC.png


Title: Re: restoring and spending bitcoin
Post by: Pmalek on December 30, 2019, 10:48:59 AM
@markzenn11
What do you see when you enter those two receiving addresses in wallet explorers like https://blockstream.info/ or https://blockchair.com/?
Confirmed, unconfirmed, spent, unspent?

Have you checked if the address match with the ones you intended to send to?


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 30, 2019, 11:29:58 AM
@markzenn11
What do you see when you enter those two receiving addresses in wallet explorers like https://blockstream.info/ or https://blockchair.com/?
Confirmed, unconfirmed, spent, unspent?

Have you checked if the address match with the ones you intended to send to?
in blockchair,
Last seen receiving: —
Balance: 0.00000000 BTC
 https://blockchair.com/bitcoin/address/1ELT1z7RMVZkUXMvPToBXfh79..........

same with the other one


Title: Re: restoring and spending bitcoin
Post by: HCP on December 30, 2019, 11:52:06 AM
That's not the full valid address... it's missing a bunch of characters off the end. If you want to check it on a blockexplorer, right click the transaction and select "Copy Address" and then paste that into a block explorer.

What do you see if you right click the transaction and select "show transaction details"? What is the "status"? ??? It is possible that the transaction may not have been broadcast properly.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 30, 2019, 12:18:23 PM
That's not the full valid address... it's missing a bunch of characters off the end. If you want to check it on a blockexplorer, right click the transaction and select "Copy Address" and then paste that into a block explorer.

What do you see if you right click the transaction and select "show transaction details"? What is the "status"? ??? It is possible that the transaction may not have been broadcast properly.

this is the details...
Status: 0/unconfirmed, not in memory pool
Date: 12/28/2019 17:34
To: 1ELT1z7RMVZkUXMvPToBXfh79................
Debit: -400.00000000 BTC
Transaction fee: -0.00054440 BTC
Net amount: -400.00054440 BTC
Transaction ID: 71dcc757a518b328e9d0493d.......................
Transaction total size: 2722 bytes
Transaction virtual size: 2722 bytes
Output index: 1

what do you think?


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on December 30, 2019, 01:03:24 PM
That's not the full valid address... it's missing a bunch of characters off the end. If you want to check it on a blockexplorer, right click the transaction and select "Copy Address" and then paste that into a block explorer.

What do you see if you right click the transaction and select "show transaction details"? What is the "status"? ??? It is possible that the transaction may not have been broadcast properly.

the full address  was replaced by dots(.........) at its few last characters by me for my privacy.  i entered the complete address though.


Title: Re: restoring and spending bitcoin
Post by: nc50lc on December 30, 2019, 02:17:41 PM
Status: 0/unconfirmed, not in memory pool
Not in mempool means that it wasn't broadcast yet.
It might be: saved without broadcasting, rejected by your own node for some reason or just a connection issue of your node.

Try to check if that transaction was already confirmed using an online blockexplorer by pasting the "Transaction ID" to the search bar.
If there's a result, it's just your node/client; If there's no result, re-broadcast it to any blockexplorer and see if it will be accepted.

Steps for broadcasting using a blockexplorer: Right-click the transaction, select "Copy raw transaction",
paste it here: https://blockstream.info/tx/push (https://blockstream.info/tx/push) or https://blockchair.com/broadcast (https://blockchair.com/broadcast) (select bitcoin) and click Broadcast transaction.
If it resulted with an error message, paste it here.


Title: Re: restoring and spending bitcoin
Post by: tranthidung on December 30, 2019, 03:28:33 PM
Transaction fee: -0.00054440 BTC
< ... >
Transaction total size: 2722 bytes
The fee is good, at 20 satoshis/ byte. Your transactions should be confirmed already. That is high enough to get confirmations fastly, according to 1, 2
[1]: https://whatthefee.io/
[2]: https://coinb.in/#fees
In addition, I saw that mempool (https://www.blockchain.com/charts/mempool-size?timespan=1week) looks good now, so if you move your coins correctly (correct bitcoin address), I guess it will be confirmed very soon from now.

However, I think what nc50lc pointed out is right. Your transaction has not yet been broadcasted.


For your privacy,

If you care about privacy, and that one (the image in that post (https://bitcointalk.org/index.php?topic=5212598.msg53458800#msg53458800)) comes from your same wallet, I believe you should blur or hide those addresses.
I did not quote that image, just in case you decide to delete it.


Title: Re: restoring and spending bitcoin
Post by: HCP on December 30, 2019, 07:53:36 PM
Ok... try and open the console in Bitcoin Core: Window -> Console

Then try:
Code:
getrawtransaction INSERT_THE_TRANSACTION_ID_HERE

eg: getrawtransaction 71dcc757a518b328e9d0493d.......................

That should hopefully give you the raw transaction hex... a very long string of hexadecimal numbers/letters. If you get an error, then there is a good chance that the transaction doesn't actually exist (wasn't broadcast, or has been dropped) on the network and is only local to your wallet. You'll need to try gettransaction instead.

Code:
gettransaction 71dcc757a518b328e9d0493d.......................

That should show you a "hex" as well.


Once you've managed to get a hex, then you need to copy it and try:
Code:
sendrawtransaction INSERT_LONG_HEXADECIMAL_STRING_HERE

What is the result of that? Do you get an error? Or does it simply return the TransactionID? ???


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 01, 2020, 11:20:36 AM
Ok... try and open the console in Bitcoin Core: Window -> Console

Then try:
Code:
getrawtransaction INSERT_THE_TRANSACTION_ID_HERE

eg: getrawtransaction 71dcc757a518b328e9d0493d.......................

That should hopefully give you the raw transaction hex... a very long string of hexadecimal numbers/letters. If you get an error, then there is a good chance that the transaction doesn't actually exist (wasn't broadcast, or has been dropped) on the network and is only local to your wallet. You'll need to try gettransaction instead.

Code:
gettransaction 71dcc757a518b328e9d0493d.......................

That should show you a "hex" as well.


Once you've managed to get a hex, then you need to copy it and try:
Code:
sendrawtransaction INSERT_LONG_HEXADECIMAL_STRING_HERE

What is the result of that? Do you get an error? Or does it simply return the TransactionID? ???
it simply return the TransactionID.


Title: Re: restoring and spending bitcoin
Post by: HCP on January 01, 2020, 06:37:24 PM
What is the result of that? Do you get an error? Or does it simply return the TransactionID? ???
it simply return the TransactionID.
Ok... so now what does it say when you right click the transaction in the history list and select "show transaction details"? What is the "status" now?

It should either say something like "0/unconfirmed, in memory pool" or... hopefully, it now says "XXX confirmations"


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 02, 2020, 08:14:06 AM
What is the result of that? Do you get an error? Or does it simply return the TransactionID? ???
it simply return the TransactionID.
Ok... so now what does it say when you right click the transaction in the history list and select "show transaction details"? What is the "status" now?

It should either say something like "0/unconfirmed, in memory pool" or... hopefully, it now says "XXX confirmations"

https://a.imge.to/2020/01/02/vGORAY.md.png


Title: Re: restoring and spending bitcoin
Post by: HCP on January 02, 2020, 10:42:35 PM
That's very odd. It doesn't generate an error when you broadcast it... But it seems like it is not being propagated ??? :-\

So, possibly your transaction is not being broadcast correctly. What happens if you copy the raw transaction hex (result from gettransaction command)...

And paste it here to broadcast it: https://live.blockcypher.com/btc/pushtx/

Does it broadcast Ok? Do you get an error?


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 03, 2020, 04:35:22 AM
That's very odd. It doesn't generate an error when you broadcast it... But it seems like it is not being propagated ??? :-\

So, possibly your transaction is not being broadcast correctly. What happens if you copy the raw transaction hex (result from gettransaction command)...

And paste it here to broadcast it: https://live.blockcypher.com/btc/pushtx/

Does it broadcast Ok? Do you get an error?

if i do that, it wont double spend the transactions?


Title: Re: restoring and spending bitcoin
Post by: nc50lc on January 03, 2020, 04:53:35 AM
if i do that, it wont double spend the transactions?
I won't, it will be a double-spend if it's a different transaction (with a different hash) spending the same UTXO.
What you will do is simply re-broadcast the same transaction to another node instead of your own.

I already suggested you this three days ago (post link (https://bitcointalk.org/index.php?topic=5212598.msg53479505#msg53479505)) to check if the culprit is your node or wallet.dat's saved transaction history.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 06, 2020, 08:33:29 AM
still working on the problem. as of today im updating to a new version of bitcoin core wallet. im using ver 0.18.0 before and im currently downloading the new ver 0.19.0.1. open the wallet there, the one that is copied from ver 0.18.0 which contain the unconfirmed transactions. then i will push the same transactions to different nodes.


Title: Re: restoring and spending bitcoin
Post by: HCP on January 06, 2020, 09:57:55 AM
Did you try broadcasting the raw hex using a broadcast tool on an external site like blockcypher (https://live.blockcypher.com/btc/pushtx/) or coinb.in (https://coinb.in/#broadcast)? If so, did you get any error messages or did it broadcast successfully? ???

I'm curious as to why the transaction appears to be "valid", but is not propagating... as mentioned earlier, there must be something "non-standard" about your transaction causing nodes to refuse to relay it... hopefully one of the broadcast tools might give you a clue as to what that "something" might be.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 06, 2020, 01:08:09 PM
Did you try broadcasting the raw hex using a broadcast tool on an external site like blockcypher (https://live.blockcypher.com/btc/pushtx/) or coinb.in (https://coinb.in/#broadcast)? If so, did you get any error messages or did it broadcast successfully? ???

I'm curious as to why the transaction appears to be "valid", but is not propagating... as mentioned earlier, there must be something "non-standard" about your transaction causing nodes to refuse to relay it... hopefully one of the broadcast tools might give you a clue as to what that "something" might be.
what about dusts btc balances? those 400 bitcoin actually came from about 100 plus addresses. about 80 addresses do have sufficient amount, the rest do have dusts balances.


Title: Re: restoring and spending bitcoin
Post by: HCP on January 06, 2020, 07:22:21 PM
It shouldn't really matter if you're trying to spend dust balances... You'll just pay a lot in fees :P

The only time "dust" matters is if you try to send or create a dust UTXO. That's what will generally trigger nodes to refuse your transaction for "dust".


Quote
Transaction total size: 2722 bytes
In any case, I don't think you're spending that many UTXOs... with a transaction size of only 2722 bytes (spending UTXOs from transactions that obviously pre-date SegWit)... you're probably only spending around ~15-18 UTXOs. depending on if you're using compressed or uncompressed keys. So I doubt you're spending from "100 plus addresses". ;)

without the actual transaction details, it's difficult to know why your transaction isn't propagating properly. I had hoped one of the external services might give you a "reason" if you tried to use them instead of simply trying to broadcast from Bitcoin Core/bitcoind yourself.


Title: Re: restoring and spending bitcoin
Post by: nc50lc on January 07, 2020, 03:32:07 AM
what about dusts btc balances? those 400 bitcoin actually came from about 100 plus addresses. about 80 addresses do have sufficient amount, the rest do have dusts balances.
You seem to be keeping the result from online broadcaster to yourself, was it an error?
Or you didn't because of privacy reasons? FYI, in terms of privacy, it's basically the same as pasting your address to their site.
If you're thinking that they can get your keys, no; or change the output, no, it's impossible without you changing the SIGHASH type which is "all" by default (changing anything will invalidate the signature).
So why don't you try to broadcast it through a blockexplorer instead?

BTW, please don't dodge this question: Did you bought that wallet.dat or was it given to you by a "friend"?
Because the balance is suspiciously identical to those tampered wallets that has been circulating in the internet.


Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 17, 2020, 02:35:15 AM
i installed virtualbox with ubuntu on it in my pc. then i run a pruned node with a replaced wallet.dat file. i also generated a receiving address and send some mbtc on it then sent those in my coinomi phone app. it was very quick,
back to my node,in debuglog ive seen those old transactions the 400 and .36 btc was still there for relay. i then abandon the .36btc and then send it again to the same address but it says it cannot be broadcasted immediately. i will try to apply zapwallettxes to config and maybe include mempoolexpiry to clear my wallet. then ill try to send my bitcoins again to my other wallet.

im very sorry for very late reply from me, setting up everything in my country takes days with 1 to 3 mbps download speed, even weeks and i even tried multiple times like trial and error.
i really need your idea guys. what will my bitcoin config file must looks like?


Title: Re: restoring and spending bitcoin
Post by: HCP on January 18, 2020, 02:24:02 AM
i really need your idea guys. what will my bitcoin config file must looks like?
Firstly, your bitcoin config will not be causing the issues you are seeing.


back to my node,in debuglog ive seen those old transactions the 400 and .36 btc was still there for relay. i then abandon the .36btc and then send it again to the same address but it says it cannot be broadcasted immediately.
What was the exact error message? Can you screen shot it when you try and create/broadcast the transaction?


Quote
i will try to apply zapwallettxes to config and maybe include mempoolexpiry to clear my wallet. then ill try to send my bitcoins again to my other wallet.
Those items don't need to be applied in the config file to fix your issue.

"zapwallettxes" is just a way to clear the local list of transactions in your wallet file... so that the blockchain can then be re-scanned and only related transactions that are currently on the blockchain or being broadcast/received from other nodes are then re-added. It is useful after you "abandon" a transaction to remove them from your transaction history list etc, if you don't want them to show any longer. Generally you only want to run this as a "one off", to clear the unwanted transactions... so, it probably shouldn't be in your config file, but used as a temporary command line argument when you start the node.

"mempoolexpiry" is not going to solve your problem at all. It is not related to your inability to send the transaction.


Title: Re: restoring and spending bitcoin
Post by: HCP on January 18, 2020, 05:58:45 AM
The ubuntu method might work but you should also send a mail to [suspicious email address redacted], a recovery firm that specializes in all types of cryptocurrency retrievals without payment of any upfronts.
I would not trust some "no history" newbie shilling a "recovery" site. That site looks very dodgy... I especially like the way they have a UK address and a North American phone number ???
https://talkimg.com/images/2023/11/15/zcXMI.png


Oh... and the premises at "94 Green Lane in Worcester"?
https://talkimg.com/images/2023/11/15/zcdJd.png
(note, the postcode listed on their website WR65 6YB doesn't actually exist)

::) ::) ::)




Title: Re: restoring and spending bitcoin
Post by: markzenn11 on January 26, 2020, 03:43:46 AM
going back to bitcoin core qt, i used command sendrawtransaction and ive got the message ''Missing inputs (code -25)''. i then go to rpc and tried myusername@bitcoin:~$ deriveaddresses "wpkh([7a0282b8/84h/0h/0h]0........... maybe this will fix my wallet. what else could i possibly do to have successful transactions?


it's been 4 days since the command deriveaddresses.... and it's not done yet, there are approximately 56000 addresses in that wallet alone.




Title: Re: restoring and spending bitcoin
Post by: HCP on January 26, 2020, 04:06:00 AM
"Missing inputs" means that your transaction is attempting to spend inputs that no longer exist in the UTXO set... AKA actual unspent transaction outputs. :-\

This is not good news.

It means that the inputs either "never existed" or they have already been spent. In the former case, it's possible that they were the result of an orphaned block, that your wallet never found out about. It's also possible you've loaded a wallet for a different coin (like LTC or DOGE) into Bitcoin Core.

In the latter case, it's possible that someone else has a copy of the wallet and the inputs you're spending have already been spent by someone in another transaction.

Without more details of the addresses involved it's impossible to tell which situation you are in... But in either case, I suspect you are going to be quite disappointed with the realisation that you don't have the coins you think you do. :-\