How to deploy a smart contract on ethereum testnet?

Bleev.In
Coinmonks
3 min readSep 6, 2017

--

This is a step by step tutorial for people who want to learn how to deploy a contract to ethereum testnet. More and more people are interested on smart contract development on ethereum nowadays. When I started to learn solidity, the first thing I wanted to do is to deploy a contract and see what a smart contract can do on the blockchain. Therefore I decided to write a blog to share my experience about how I deployed contracts on ethereum testnet.

New to trading? Try crypto trading bots or copy trading

1. Write a contract. In this case, we are using the simplest contract from solidity official document.

2. The testnet I’m using here is Roptsen. You can get some free ether for deploying contracts at this faucet website: http://faucet.ropsten.be:3001/.

3. Using a wallet to deploy the contract. I’m using Parity for myself. There are many other options on the market. Should be very similar. For starting parity to connect with Ropsten testnet, you can use following command:

open your browser at localhost:8080, you can see parity web UI:

4. Open the contract tab, click deploy button, you can fill the form to submit your contract to the testnet.

5. To complete the form, you need to get the abi / solc combined ouput for the contract. You can save the contract in a storage.sol file. Using the following command to compile this file to get the output (you might to need to install solc first):

the output is:

6. After you complete the form for deploying the contract, you can submit the deployment request to deploy it to the testnet.

7. Now you can see the deployed contract on the testnet blockchian: https://ropsten.etherscan.io/address/0x18A0fa8e30f419c26744dBDC149c7de0fCea92D0

Deploying smart contracts is fun. It is even more fun to interact with them on the blockchain. I usually learn more and faster when my hands get dirty. If you have any other questions, please leave your questions in the comments. Thanks!

Join Coinmonks Telegram Channel and Youtube Channel get daily Crypto News

Also, Read

--

--