I am using the official bitcoin core client downloaded from bitcoin.org

i have googled this question multiple times finding only virus warning files or forums with links to outdated information and i cant find a concrete answer for the latest version 0.20.1 for my question (ill make it simple) "which command do i type into bitcoin core console to mine?"

How can i "get" a new block for a "reward" of the current reward btc as a "miner"?

i have tried "nicehash" for 2 hours but that netted me like $0.03 and a very hot machine haha

i know the chances are very very low for me to solo mine (for example bitcoin core uses only CPU which is very inefficient apparently), i dont care, i want to do it anyway, i know there are other mining software out there but i want to use bitcoin core, to get it mining and working properly

i have tried


which gave me back output which i mostly understand (but no errors)

then i tried:

getblocktemplate "{\"rules\":[\"segwit\"]}"

which spewed out a lot of information which i do not fully understand yet... (but no errors)

currently i am trying :

generatetoaddress 1 "*** address removed***" (999999999)

which takes about 17 minutes to complete and i get a return of in the console:

What is the following output? is it an error?



Question: is this the right method:

generatetoaddress 1 "*** address removed***" (999999999)

above to mine the current 6.25btc reward with bitcoin core?

i know the odds are slim but is this the right command?

if so, this command currently takes 17 mins, should i try less iterations (default or 1 or other low number?) with a higher nblock value?

of note: using iterations less than 999999999 results in the command processing quickly (1 second not 17 minutes)

if this is wrong command then why however in the debug file do i find this after using the command?:

2021-01-**T11:**:**Z CreateNewBlock(): block weight: ******** txs: **** fees: ********* sigops *****

Question: what does this above output tell me? please note i have put stars (*) to hide possibly sensitive info

Question: How can i speed up the response of 17 minutes for my command:

generatetoaddress 1 "address" (999999999)

? in task manager the bitcoin core program is using about 15% cpu and about 800mb ram

can i increase its resources for a faster response in the console for my command which currently takes 17 minutes to compute?

  • 1
    You are not trying to do something sensible. Your question has excluded all the good answers already. It's really a lot like "How can I use a jackhammer to put in a screw? I don't want to use a screwdriver." Jan 3, 2021 at 12:47
  • Do you have a constructive answer? i dont understand what you mean by "your question has excluded all the good answers already." please tell me how this comment helps .
    – VEL-3000
    Jan 3, 2021 at 12:49
  • You insist on using one particular tool and you insist on doing one particular job, but the tool you have picked is entirely unsuitable for the job you have picked. How can anyone give you a constructive answer? What's a constructive answer to "how do I put in a screw with a jackhammer?" except "Don't use that tool or use that tool to do something else". Jan 3, 2021 at 12:51
  • again your comments/replies have added nothing to my initial question discussion.
    – VEL-3000
    Jan 3, 2021 at 12:53
  • As I said, they're not going to because you are asking a question that does not have a constructive answer beyond "don't do that, do something else". We could point you to other things to do, but you've asked us not to. You've completely tied our hands. Jan 3, 2021 at 12:54

1 Answer 1


Bitcoin Core on its own does not support mining. You need to run additional mining software with Bitcoin Core.

generatetoaddress can only be used on regtest which is for local testing. Any Bitcoin generated to this address are not worth anything.

i have tried "nicehash" for 2 hours but that netted me like $0.03 and a very hot machine haha

This sounds about right unfortunately. The total network hash rate according to blockchain.com is over 100 million terahashes per second. We are long past the point where CPU solo mining can successfully mine a block. You will be waiting for many years before you do. The best you can hope for is to sign up to a mining pool and generate the odd cent.

  • how certain are you bitcoin core does not support mining on its own? or is that just a general consensus which you have adopted? for example does it explicitly state anywhere on bitcoin.org that mining with their bitcoin core is no longer possible?
    – VEL-3000
    Jan 3, 2021 at 12:55
  • 100 percent certain. Bitcoin Core can work with additional mining software but without that additional mining software there is nothing you can do exclusively with Bitcoin Core. Jan 3, 2021 at 12:58
  • 3
    bitcoin.org isn't an authoritative resource. The codebase of Bitcoin Core is the authoritative resource. Jan 3, 2021 at 13:09
  • 3
    Removed in version 0.13 bitcoin.org/en/release/v0.13.0#removal-of-internal-miner Jan 3, 2021 at 13:09
  • 1
    @RLRTech2021: It was just completely hopeless to use regular computers after 2013: bitcoin.stackexchange.com/a/41277/5406
    – Murch
    Jan 6, 2021 at 17:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.