How to generate a block in the new version of bitcoind.

bitcoin-cli -regtest generate 1

The above command no longer works with the latest bitcoind package

I want to confirm a transaction I have executed under the regtest mode for bitcoind, hence generating a block to confirm the tx.

1 Answer 1


generate was deprecated and removed in favor of generatetoaddress.

Your Answer

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

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