title: Error in Deployment in Binance Testnet : Could not create addresses from your mnemonic or private key(s)
body: <p>I was trying to deploy my contract to Binance Smart Chain Testnet and I got this error. I am using truffle and also successfully installed truffle HD wallet Provider.</p>
  <p>Truffle Error:-</p>
  <pre><code>Error: Could not create addresses from your mnemonic or private key(s). Please check that your inputs are correct.
      at new HDWalletProvider (/Users/macbook/Desktop/Test/node_modules/@truffle/hdwallet-provider/src/index.ts:124:13)
      at Object.provider (/Users/macbook/Desktop/Test/truffle-config.js:12:16)
      at Object.getProvider (/usr/local/lib/node_modules/truffle/build/webpack:/packages/provider/index.js:20:1)
      at Object.create (/usr/local/lib/node_modules/truffle/build/webpack:/packages/provider/index.js:13:1)
      at TruffleConfig.get [as provider] (/usr/local/lib/node_modules/truffle/build/webpack:/packages/config/dist/configDefaults.js:200:1)
      at Object.detect (/usr/local/lib/node_modules/truffle/build/webpack:/packages/environment/environment.js:19:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:206:1
  Truffle v5.1.54 (core: 5.1.54)
  Node v14.15.4
  </code></pre>
  <p>My Truffle Config.js File</p>
  <pre><code>const HDWalletProvider = require('@truffle/hdwallet-provider');
  const privateKeys = process.env.PRIVATE_KEYS || &quot;&quot;
  module.exports = {
    networks: {
      development: {
        host: &quot;127.0.0.1&quot;,
        port: 7545,
        network_id: &quot;*&quot;
      },
      binancetestnet: {
        provider: function() {
          return new HDWalletProvider(
            privateKeys.split(','), // Array of account private keys
            `https://data-seed-prebsc-1-s1.binance.org:8545/${process.env.INFURA_API_KEY}`// Url to an Ethereum Node
          )
        },
        gas: 5000000,
        gasPrice: 25000000000,
        network_id: 97
      }
    },
  
    // Set default mocha options here, use special reporters etc.
    mocha: {
      // timeout: 100000
    },
  
    // Configure your compilers
    compilers: {
      solc: {
         version: &quot;0.7.3&quot;,    // Fetch exact version from solc-bin (default: truffle's version)
        // docker: true,        // Use &quot;0.5.1&quot; you've installed locally with docker (default: false)
        // settings: {          // See the solidity docs for advice about optimization and evmVersion
        //  optimizer: {
        //    enabled: false,
        //    runs: 200
        //  },
        //  evmVersion: &quot;byzantium&quot;
        // }
      }
    }
  };
  </code></pre>
  <p>My.env File</p>
  <pre><code>ETHERSCAN_API_KEY=https://data-seed-prebsc-1-s1.binance.org:8545/
  INFURA_API_KEY=https://data-seed-prebsc-1-s1.binance.org:8545/
  PRIVATE_KEYS=&quot;94916xxxxxx57ad13e6db71ed9fe5f94456e4128d51xxxxxxxf95xxd&quot;
  DEV_ADDRESS=&quot;0xbxxxxx80e3a43EBCab9A6CeC9d9e2a491xxxxxxC&quot;
  </code></pre>
  <p>I have attached all the code with errors I am facing. Can anyone help me with it?. Truffle compile worked successfully.</p>