Giter Club home page Giter Club logo

function-frontend's Introduction

DAPP - Balance and Transfer (ETH & MetaMask)

This repository contains a decentralized application (DAPP) that allows users to check their account balance and transfer funds using Ethereum and MetaMask. The DAPP is built using React and Solidity.

Features

  • Connect Wallet: Users can connect their MetaMask wallet to the DAPP.
  • Account Balance: Users can view their account balance in the DAPP.
  • Transfer Funds: Users can transfer funds to another Ethereum address by specifying the recipient address and the transfer amount.

Smart Contract

The smart contract is implemented in Solidity. It includes the following functions:

  • transferEther: Allows users to transfer Ether to another address. It requires the sender to have a sufficient balance.
  • accountBalance: Returns the account balance of the caller.

Frontend

The frontend of the DAPP is implemented using React. It includes the following functionality:

  • Connect Wallet: Allows users to connect their MetaMask wallet to the DAPP.
  • Account Balance: Displays the account balance of the connected wallet.
  • Transfer Funds: Enables users to specify a recipient address and transfer amount to send funds.

The DAPP uses the Ethereum provider and signer from MetaMask to interact with the smart contract.

Usage

  1. Install MetaMask browser extension.
  2. Open the DAPP in a web browser.
  3. Click on the "Connect Wallet" button to connect your MetaMask wallet.
  4. Once connected, you can view your account balance.
  5. To transfer funds, enter the recipient address and the transfer amount in the provided input fields and click the "Transfer" button.
  6. The transaction confirmation hash will be displayed upon successful transfer.

function-frontend's People

Contributors

u-kuro avatar blockchaintrainer 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.