generate

wallet removed deprecated v0.18 removed v0.19
This RPC no longer exists in Bitcoin Core. Documented here so users finding old tutorials, blog posts, or code samples can learn what it did, when it went away, and what to use instead.

Mined blocks immediately to a wallet-derived address (regtest only). Removed because it relied on the wallet's internal address generation; generatetoaddress is the modern equivalent and works without a wallet.

Use instead

generatetoaddress

Last-known help text

From the version just before removal.

generate nblocks ( maxtries )

DEPRECATED. Mine up to nblocks blocks immediately (before the RPC call returns)
to a wallet-derived address (regtest only). Removed in 0.19.
Use generatetoaddress instead.
← back to all RPCs