Skip to content

Instantly share code, notes, and snippets.

@ChamsBouzaiene
Created October 6, 2019 23:07
Show Gist options
  • Save ChamsBouzaiene/c3cd817dd29d50827e5fa0771ae89a46 to your computer and use it in GitHub Desktop.
Save ChamsBouzaiene/c3cd817dd29d50827e5fa0771ae89a46 to your computer and use it in GitHub Desktop.
truffle config for the ropsten blockchain
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