What are the parameters that I have to specify to be able to deploy solidity contracts using Truffle in the config file? I am using Metamask to store test ether and have a unique mnemonic to define this in the config file.


1 Answer 1


Your truffle.js:

module.exports = {
  rpc: {
    host: 'localhost',
    port: '8545'
  networks: {
    development: {
      host: 'localhost',
      port: 8545,
      network_id: '*' // Match any network id
    rinkeby: {
      network_id: 4,
      host: '',
      port: 8545,
      gas: 4000000

then after starting and syncing geth to look at the rinkyby test network like:

https://www.rinkeby.io/ -the connect yourself section or


and more info here you could:

truffle console --network rinkeby


truffle migrate --network rinkeby

which lets you interact with your local running/syncing rinkeby node.

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.