Sitemap

Deploy your first Smart contract on Shardeum Testnet Blockchain

3 min readOct 30, 2022

--

This guide will teach you how to create and deploy your first smart contract on the Shardeum blockchain.

What is Shardeum Blockchain :

  • Shardeum is a EVM(Ethereum virtual machine) based layer-1 blockchain means you can build any dApp’s smart contract using solidity and vyper programming languages.
  • low gas fees and high TPS ,when a new node joins the Shardeum network immediately increases the transactions per second (TPS).

prerequisites:

  1. Metamask Wallet extension

Steps to write write your first smart contract

  1. Go to the https://remix-project.org/ and open it
  2. Create a new file “Attendence.sol” under “contract” folder

3. copy and paste this code in your “Attendence.sol” file

// SPDX-License-Identifier: GPL-3.0pragma solidity >=0.7.0 <0.9.0;contract Attendence {address teacher = msg.sender;uint  Totalstudent = 20;uint public Totalstudent_pre  =0;uint public todaystu;mapping(address=>bool) public Present_in_class;function yesMam(address studentID) public {require(!Present_in_class[studentID],"already atended");Present_in_class[studentID] = true;Totalstudent_pre++;}function todayaatendence() public{todaystu = Totalstudent - Totalstudent_pre;}}

Now compile your “Attendence.sol” file

Click Compile Attendance.sol and make sure there are no errors.

Get Mr Rix Drops’s stories in your inbox

Join Medium for free to get updates from this writer.

Click Compile Attendance.sol and make sure there are no errors.

Deploy on the Shardeum Testnet Blockchain

Setup wallet

Add Shardeum network to Metamask wallet Link

Faucets

Claim 100 Liberty SHM

Deploy to Liberty2.0 testnet

Environment — Injected Provider — Metamask

Custom (8081) network

Click on the Deploy Button

Confirm the transaction on Shardeum Liberty2.0

Hurrah!! you just deployed your first smart contract on shardeum Testnet Blockchain.🥳

Here is the Block explorer Link

--

--

Mr Rix Drops
Mr Rix Drops

Written by Mr Rix Drops

I am actually a strong researcher on best crypto projects such as Airdropping projects in the mean time. I am also a youtuber as https://youtube.com/mrrixcrypto