Giter Club home page Giter Club logo

hardhat-hts-sc's Introduction

Hedera Smart Contract Basics: Deploying Smart Contracts with Hardhat and Ethers

Welcome to another episode of Hashgraph Hub's Hedera Smart Contract Basics. In this episode, we're going to guide you through deploying smart contracts using Hardhat and Ethers.

This guide is divided into six steps:

1. Initialise Hardhat

We'll start by setting up a new Hardhat project. Use the command npx hardhat to start a new project and follow the prompts.

2. Install NPM Modules

We'll then install the necessary npm modules for our project. Use npm install along with the name of the modules needed for this project.

3. Set Up Wallets

Before we can interact with a contract, we need a wallet. We'll walk you through setting up an Hedera wallet and connecting it to the Hardhat network.

4. Write Script

Next, we'll write a script that deploys our contract. This script will import our wallet and contract, connect to the network, and then deploy the contract.

5. Run Test

We'll then run the script using Hardhat's task runner. By running npx hardhat test, Hardhat will execute our script and deploy our contract to the network.

6. Check Hashscan

Finally, after deployment, we will verify the contract's existence on the network using Hashscan.

Stay tuned to the Hashgraph Hub YouTube channel for more episodes in our Hedera Smart Contract Basics series. Happy coding!

hardhat-hts-sc's People

Stargazers

 avatar Araaf Ario Setyo Guritno avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.