Created
October 6, 2019 23:07
-
-
Save ChamsBouzaiene/c3cd817dd29d50827e5fa0771ae89a46 to your computer and use it in GitHub Desktop.
truffle config for the ropsten blockchain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const HDWalletProvider = require("truffle-hdwallet-provider"); // npm i truffle-hdwallet-provider | |
const ROPSTEN_MNEMONIC = | |
"Input your seed phrase here"; | |
const INFURA_API_KEY = "input your infura api Key here"; | |
module.exports = { | |
networks: { | |
ropsten: { | |
provider: function() { | |
return new HDWalletProvider( | |
ROPSTEN_MNEMONIC, | |
`https://ropsten.infura.io/v3/${INFURA_API_KEY}` | |
); | |
}, | |
network_id: 3 | |
} | |
}, | |
compilers: { | |
solc: { | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment