Building dAPPs as a Bhad Guy: Part Two

Segun Joshua
Coinmonks
3 min readMar 13, 2020

--

In the last guide, we talked about getting started in building dAPPSs while showcasing some test examples and tools. Today, we are going to discuss how to deploy and interact with a smart contract on the blockchain.

Things We Need

  • Metamask
  • Ganache-CLI
  • Web3 Js

Section 1

Using Metamask: It is recommended you use the Ropsten Network on the Ethereum Blockchain. Deploying on the Main network will require the use of real Ether. But you can make use of the Free Ether provided by the Ropsten Faucet.

Metamask Wallet (Connected to the Ropsten Network)

To Deposit Ether into your wallet on the Ropsten Network using the free faucet.

Deposit Ether via Ropsten

Click on Request Faucet

Metamask Ether Faucet

Check your balance to see the Ether transferred from the Faucet.

Section 2

By using Metamask, you can use Remix to deploy directly.
Change Deployment Environment to Injected Web3

A Screen will pop-up asking for your permission to connect the Remix IDE

Confirm your transaction to deploy the Smart Contract

The Smart contract has been successfully deployed

Using the link provided on Metamask, view your contract creation.

Etherscan.io is an explorer used to check and verify transactions on the ethereum blockchain.

Using Ganache

To begin with, run ganache-cli on your PC Terminal

Ganache Cli Initiated

On your Remix Interface, select Deployment Environment as Web3 Provider and Input your Web3 Endpoint(The Url Ganache is listening on)

Select a wallet address you want to deploy to

Check and verify contract deployed

Note*: Ganache is a Test Simulation Environment of the Ethereum Network, contracts deployed will get deleted once you end the program.

And that’s it, you have successfully been able to deploy your Smart Contract on the Ethereum Blockchain.

Get Best Software Deals Directly In Your Inbox

--

--