How do I get started with a monero Regtest node? I am running monerod with --regtest, but when I mine, the difficulty quickly increases to a point where I need to wait an hour to generate a fair amount of blocks.

1 Answer 1


Start the monero daemon with the following flags:

./monerod --regtest --offline --fixed-difficulty 1

--fixed-difficulty keeps the difficulty constant, allowing users to quickly generate a large number of blocks

--offline ensures that the node does not connect to the main network and learn of its latest chaintip

New blocks can be generated with the following RPC call, mining the new block directly to a specific address:

curl -d \
"starting_nonce": 0}' \
-H 'Content-Type: application/json'

The generateblocks RPC call is badly documented, probably because it is only useful for nodes running in --regtest mode. Observe the amount_of_blocks field, allowing the user to generate an exact number of blocks quickly.

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.