I have encountered a problem where I need a large number of test accounts. How can I increase the number of test accounts from 10. Remix and ganache only give 10 accounts. I require more than that.


Ganache and Ganache CLI

With ganache-cli you can do this with the --accounts flag. For example:

ganache-cli --accounts=100

Ganache (the desktop application) comes with 100 accounts by default.


If you are using the Javascript VM, then you simply need to click the + button next to the word "Account"

account add

If you are using Injected Web3, then whatever is injecting your Web3 (most likely MetaMask) needs to have all those accounts. You must create more accounts there.

Finally, if you are using a Web3 provider, you must make sure that the provider you are pointing it to (probably ganache) has the accounts available. In order to do this, follow the "Ganache and Ganache CLI" section above.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.