Steps to deploy a contract using MetaMask and Truffle

Selvakumar Esra
Coinmonks
2 min readMar 22, 2018

--

Deploy smart contract on Ropsten network with MetaMask & Truffle. Two solutions to start with, one is to run your own geth node which consumes lot of cpu from your machine. In my MacBook Pro, running a geth node for 15 minutes will drain the full battery and the other solution is to connect with a public node like infura(https://infura.io/)

Solution 1: With you own node

You can easily deploy on the ropsten network if you own a full node running on your machine.

i. Run geth

ii. In truffle.js, add the following configure for the ropsten network

iii. Deploy on the ropsten network

Solution 2: With a public node like Infura

i. Install the needed libraries

Navigate into the project folder and run the following command:

ii. In truffle.js, Add the following code to unlock your Metamask account and configure the Infura Ropsten node as entry point by providing the mnemonic phrase (Metamask / Settings / Reveal Seed Words)

iii. Deploy on the ropsten network

Join Coinmonks Telegram Channel and Youtube Channel get daily Crypto News

Also, Read

--

--

Selvakumar Esra
Coinmonks

Loves Blockchain, Machine Learning, Fintech, GameTech, Augmented reality, Virtual reality and tech entrepreneurship.