trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.

Home Page:https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set initial balance for public key

matthiasgeihs opened this issue · comments

As far as I can see, there is currently no way to set an initial balance for a given public key (not secret key).
It would be great to have that option. (Otherwise we need to copy around secret keys which even for testing is not good practice, if it can be avoided.)

Any thoughts?

Yes, it does. I forgot to mention that I would ideally want this as a command line argument.

Is there a command line argument corresponding to setAccountBalance, so that I can bootstrap a Ganache chain with a given balance for a given public key?