Giter Club home page Giter Club logo

metamaskdemo's Introduction

Ethers.js Demo Using Metamask and React.js

This repo contains demo code for interacting with the Ethereum blockchain using the Ethers.js library and Metamask browser plugin.

Pull requests welcome.

Assumed Knowledge:

  • react.js
  • ethereum basics
  • metamask
  • asynchronous javascript

Setup Requirements

Setup

  1. clone the repo: git clone https://github.com/severalpens/metamaskdemo.git
  2. run npm install to install npm packages
  3. start the app: npm start
  4. visit http://localhost:3000 and open developer tools (f12) to see console.log outputs
  5. To compile contracts, run npm i -g truffle then truffle compile

Tasks/Demos:

  • t1_generateAccounts: Generate new Ethereum Accounts
  • t2_getBalance: Get the balance of an Ethereum Account
  • t3_transferEth: Transfer Eth balance between two Ethereum Accounts
  • tc1_createFungibleContract: Create a new contract using ERC20 spec (Fungible Token)
  • tc2_transferTokens: Transfer tokens between accounts
  • t6_createNFT: Create a new contract using ERC720 spec (Non Fungible Token)
  • tc4_transferNFT: Transfer an NFT between Ethereum Accounts

metamaskdemo's People

Contributors

severalpens avatar

Stargazers

 avatar

Watchers

 avatar  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.