Every time I turn my computer off or even change settings on Ganache (I need to restart) I lose the state of the blockchain and it creates a new one, I have to redeploy my contracts, etc.

Is there a way to keep the same blockchain every time I open Ganache?

How should I proceed if I want to keep track of my private blockchain?

1 Answer 1


I think this is the solution: --db: Specify a path to a directory to save the chain database. If a database already exists, the TestRPC will initialize that chain instead of creating a new one.

from: https://github.com/trufflesuite/ganache-cli

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.