5

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.

Thanks

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: '127.0.0.1',
      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

https://github.com/ethereum/go-ethereum/wiki/geth

and more info here you could:

truffle console --network rinkeby

or

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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.