2

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.

3

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.

| improve this answer | |
1

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
| improve this answer | |
1

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
    }
  }
};
| 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.