<p><code>generate</code> was deprecated and removed in favor of <code>generatetoaddress</code>.</p>

CC BY-SA 4.0
2019-12-09T03:03:44.767Z
2019-12-09T03:03:44.767Z
Ava Chow
<p>How to generate a block in the new version of bitcoind.</p>

<blockquote>
  <p>bitcoin-cli -regtest generate 1</p>
</blockquote>

<p>The above command no longer works with the latest bitcoind package</p>

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

<bitcoind>
bitcoind rpc interface, generate method deprecated in version 0.19.0 (latest)
Therenca
# bitcoind rpc interface, generate method deprecated in version 0.19.0 (latest)

(Asked by: username_0 on 2019-12-09)

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.

**Tags:** bitcoind


---

## 1 answers

### Answer by username_1 on 2019-12-09. Score: 4

`generate` was deprecated and removed in favor of `generatetoaddress`.


---

