<p>the answer is :</p>
<p>bitcoin-cli -regtest generatetoaddress &lt; nblocks &gt; &lt; address &gt;</p>

CC BY-SA 4.0
2020-12-03T08:20:03.247Z
2020-12-03T08:20:03.247Z
Newdude
<p>when I type</p>
<pre><code>bitcoin-cli -regtest generate 101
</code></pre>
<p>in the powershell it gives me this error:</p>
<pre><code>PS C:\Program Files\Bitcoin\daemon&gt; ./bitcoin-cli -regtest generate 101
error code: -32601
error message:
</code></pre>
<p>I am running bitcoind in regtest too ,this is the last message that I got fom bitcoind:</p>
<pre><code>Adding fixed seed nodes as DNS doesn't seem to be available.
</code></pre>
<p>please help</p>

<bitcoin-core><bitcoin-cli><regtest>
-regtest generate 101 not working
Newdude
# -regtest generate 101 not working

(Asked by: username_0 on 2020-12-02)

when I type

```
bitcoin-cli -regtest generate 101

```

in the powershell it gives me this error:

```
PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 101
error code: -32601
error message:

```

I am running bitcoind in regtest too ,this is the last message that I got fom bitcoind:

```
Adding fixed seed nodes as DNS doesn't seem to be available.

```

please help

**Tags:** bitcoin-core, bitcoin-cli, regtest


---

## 1 answers

### Answer by username_0 on 2020-12-03. Score: 1

the answer is :

bitcoin-cli -regtest generatetoaddress < nblocks > < address >


---

