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
ganache-cli you can do this with the
--accounts flag. For example:
Ganache (the desktop application) comes with 100 accounts by default.
+ button next to the word "Account"
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.