Skip to content

A minimal dapp which showcase the working of a smart contract

License

Notifications You must be signed in to change notification settings

0xSanyam/FundMe-Dapp

Repository files navigation

FundMe Dapp

This is a minimal dapp which implements the FundMe Smart Contract.

Quickstart

  1. Clone the repo

    git clone https://github.com/0xSanyam/FundMe-Dapp
  2. Run the file

    You can usually just double click the file to "run it in the browser". Or you can right click the file in your VSCode and run "open with live server".

Implementation

When opened in a browser having metamask wallet extension, it looks like this

First Look With Metamask

And if you open in a browser, which doesn't have the metamask extension, then it looks like this

No Metamask

NA

It prompts us with a button stating "Please install Metamask", when clicking on it, it leads us to the offical download page

Install

When connected it shows us the chain id and the network id and 🛑 warns us if we are on the ethereum mainnet

Features ChainId Network

Warning

If we click on the Account button(metamask connected), it shows us our current account number

Account Connected

Now, let us try funding 0.05 Eth to this smart contract

All transaction are being performed on the hardhat localhost

Localhost

Metamask Localhost

Fund

After clicking the fund button

Initiating

After pressing confirm, the funding is done!

Completed

Now, comes the withdrawal part, first we will like to see the current balance after several more transactions in this smart contract, then we'll do the withdrawal

Balance

Current balance is 999.05 Eth and the total available credit in our account is

Wallet Balance

After withdrawal, all the funds are now in our account!

Withdrawing

Completed

Done

About

A minimal dapp which showcase the working of a smart contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published