Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Set initial balance for public key #4468

Open
matthiasgeihs opened this issue Jul 2, 2023 · 2 comments
Open

Set initial balance for public key #4468

matthiasgeihs opened this issue Jul 2, 2023 · 2 comments

Comments

@matthiasgeihs
Copy link

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?

@davidmurdoch
Copy link
Member

https://ganache.dev/#evm_setAccountBalance does that do what you want?

@matthiasgeihs
Copy link
Author

matthiasgeihs commented Jul 3, 2023

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants