Skip to content

Rohitmishra-coder/Blockchain_Task4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Private Ethereum Blockchain with Hardhat

This project demonstrates how to create a private Ethereum blockchain using Hardhat, deploy a smart contract to it, and interact via Remix and MetaMask.


🛠 Tools Used


🔧 Steps Performed

  1. Installed Hardhat and initialized the project:

    npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox
    npx hardhat
  2. compiled simple smart contract HelloWorld.sol

  3. Ran the local Hardhat blockchain:

    npx hardhat node
  4. Deployed the contract locally:

    npx hardhat run scripts/deploy.js --network localhost
  5. Connected Remix to http://127.0.0.1:8545 via Web3 Provider and interacted with the contract.


🧪 How to Test

  • Clone this repo
  • Install dependencies:
    npm install
  • Compile contracts:
    npx hardhat compile
  • Start local blockchain:
    npx hardhat node
  • Deploy:
    npx hardhat run scripts/deploy.js --network localhost

Author

Rohit Mishra

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published