So in regards to sending the 10 bitcoin to the new address we generated… why do we still count the transaction that we sent… the 40 btc, as a UTXO if we sent it doesn’t that now become the new wallets UTXO?
Not sure I understand. Of course it still counts its just now part of a different UTXO that is in your wallet. When sending value using the CLI (or a UI wallet) the wallet will do this for you in the background. You can see the UTXO using listunspent
command. Mind that you might have to mine a few more blocks for the UTXO to become visible.
When you create a raw tx on your own, you will have to specify the return address on your own.
Hi guys,
when I am running below command, I am getting this error:
error code: -4
error message:
Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable -fallbackfee.
.\bitcoin-cli.exe -regtest sendtoaddress $a 10.00
The version I used is " Bitcoin Core version v0.20.1 (release build)".
Couldn’t find a way to set this flag. I tried to modify .conf file and in the command as -fallbackfree switch, nothing worked
You have to enable fallback fee in the daemon.
.\bitcoind.exe -regtest -fallbackfee='0.00001'
Yes, the method was deprecated and was replaced with generatetoaddress
the video hasn’t been updated yet:
./bitcoin-cli -regtest generatetoaddress 101 <ADDRESS>
Excellent
Thanks for this… I was stuck.
Thanks for this, cata!
Its the 19th December 2020 and the video has still NOT been updated.
You’re running testnet, this method doesn’t work there. You should be running regtest.
Yep = This worked for me. … but the sendtoaddress part in the directions was formated differently in the video. I used the video method after opening bitcoind in the command line:
./bitcoind -regtest -fallbackfee=“0.00001”
and then in a new powershell after loading a wallet …
./bitcoin-cli -regtest sendtoaddress blablabla 10
thank you very much for the insight i was wondering what was wrong. I would have never guess it in 100 years.
Hi. I have problem with starting my bitcoin-cli in PowerShell. I get this message
Bitcoind is running in regtest but I cant’t start bitcoin-cli. Please advice what to do next. Thank you!
You have to create a wallet with createwallet
Hi,
I am having a weird issue. I am trying to reset my regtest node by deleting the directories as stated in developer.bitcoin.org and no luck. I have reinstalled Bitcoin Core several times (and different versions) and same result. I have searched for a specific command to restart the regtest node and haven’t found any.
Whenever I run bitcoin-cli -regtest listunspent
I am still able to see the thousands of UTXOs I mined originally and would like to start a fresh regtest node on my machine.
Has anyone encountered this issue? If so, please advise. Thanks!
Never mind, I logged in with an admin account and was able to find the regtest directory. Deleting it solved the issue.
Hello! I am on regtest and trying to do lesson “Sending Transactions through bitcoind” but i am getting the fallbackfee error, here is a screenshot! How do I fix this? I am on regtest, Thanks!
You have to start the daemon with -fallbackfee 0.1
.
You have to add the fallback fee to the parameter when starting bitcoind: bitcoind -regtest -fallbackfee=0.001