How do I need to call HDWalletProvider to get for example 50 addresses with funds?

The networks part in my truffle.js configuration file looks like this:

networks: {
    development: {
      provider: function() {
        return new HDWalletProvider(mnemonic, "", 0, 50);
      network_id: '*'

With this, I have 50 addresses but it looks like only the first 10 have funds.

I am trying this with the following versions:
Ganache CLI v6.12.2 (ganache-core: 2.13.2)
Truffle v5.3.2 - a development framework for Ethereum

1 Answer 1


I found the answer here:

Just start the ganache-cli with the extra argument --accounts=<number of accounts>

E.g.: ganache-cli --accounts=100

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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