How do we get more than 10 accounts in the truffle develop blockchain ? If someone has an idea about the question in the title, would be of help to many people out there for testing. Thanks a lot.
As per the documentation for Truffle Develop:
Note: The mnemonic and addresses cannot be changed. If you want to use a different mnemonic or set of addresses, we recommend using Ganache.
If you're using Ganache, you can change the number of addresses using the "Total accounts to generate" option under the "Accounts and Keys" settings.
I guess the simplest way is to execute inside the console:
web3.personal.newAccount()
You can then confirm the account has been added by typing
web3.eth.accounts.length
Oh, the docs are out of date!
You can configure this now:
module.exports = {
/* ... rest of config */
networks: {
/* ... other networks */
"develop": {
accounts: 5,
defaultEtherBalance: 500,
blockTime: 3
}
}
};