Bitcoin Core Advanced Discussion

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. :slight_smile:

1 Like

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. :slight_smile:

.\bitcoind.exe -regtest -fallbackfee='0.00001'
1 Like

@Alko89
Any idea why i cant generate 101 blocks? on regtest?
image

Yes, the method was deprecated and was replaced with generatetoaddress the video hasn’t been updated yet:

./bitcoin-cli -regtest generatetoaddress 101 <ADDRESS>
2 Likes

Excellent
Thanks for this… I was stuck.

Thanks for this, cata!
Its the 19th December 2020 and the video has still NOT been updated.

Still do not work the generatetoaddress method.

You’re running testnet, this method doesn’t work there. You should be running regtest.

1 Like

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

1 Like

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 image

Bitcoind is running in regtest but I cant’t start bitcoin-cli. Please advice what to do next. Thank you!

1 Like

You have to create a wallet with createwallet

2 Likes

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.

1 Like

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! fallbackfee

1 Like

You have to start the daemon with -fallbackfee 0.1.

3 Likes

I tried doing -fallbackfee 0.1 and it didnt work

You have to add the fallback fee to the parameter when starting bitcoind: bitcoind -regtest -fallbackfee=0.001