Skip to content

Instantly share code, notes, and snippets.

@andresaaap
Created March 27, 2019 18:41
Show Gist options
  • Save andresaaap/733744530bd46047fc7c5c4b0d561f30 to your computer and use it in GitHub Desktop.
Save andresaaap/733744530bd46047fc7c5c4b0d561f30 to your computer and use it in GitHub Desktop.
Example of a correct configuration of a provider to the Rinkeby Testnet
const HDWalletProvider = require("truffle-hdwallet-provider");
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
rinkeby: {
provider: function() {
return new HDWalletProvider("candy maple cake sugar pudding cream honey rich smooth crumble sweet treat",
"https://rinkeby.infura.io/v3/<Key>")
},
network_id: '4',
gas: 4500000,
gasPrice: 10000000000,
}
},
compilers: {
solc: {
version: "^0.4.24", // A version or constraint - Ex. "^0.5.0"
// Can also be set to "native" to use a native solc
docker: false, // Use a version obtained through docker
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment