What is the difference between

bitcoin-cli getblocktemplate '{"rules": ["segwit"]}'


bitcoin-cli generatetoaddress 11 "myaddress"

as I understand both are for mining?

What's the best option for solo mining bitcoin core wallet without extern miner software?

like in the past set generate true.

any help would be appreciated

1 Answer 1


what is the difference between:

bitcoin-cli getblocktemplate '{"rules": ["segwit"]}'

This implements the GBT protocol, specified in BIP21, for letting mining hardware and (in practice, mostly) pool software communicate with Bitcoin Core.

It outsources the mining computation to software/hardware external to Bitcoin Core. It is the only practical option for mining BTC on mainnet today.


bitcoin-cli generatetoaddress 11 "myaddress"

This is a slow, unoptimized, test-only, simplistic way of constructing a block directly by Bitcoin Core. It will mine 11 blocks, with whatever transactions Bitcoin Core knows about in its mempool, and pay out the proceeds to the specified address.

It is only practical to use this on test networks, like testnet and regtest. On mainnet it would literally take a billion years before it found anything.

what's the best option for solo mining bitcoin core wallet without extern miner software.


  • thank you this answeres my question perfectly ;-)
    – BG media
    Oct 13, 2021 at 0:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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