Git Product home page Git Product logo

web3sign's Introduction

GitHub issues GitHub forks GitHub stars GitHub license GitHub commit checks state GitHub last commit Twitter

Web3Sign

The purpose of this tiny class is to enable user interactions and experience on Ethereum-based websites.

Description

The advent of Web3 and the complexity of published libraries and the lack of transparent documentation in this area have made it difficult for newcomers to the Web3 world, including the web3js and Etherjs libraries. On the other hand, in some projects, Web3 features are used only for authentication, such as login and registration pages. All in all, this class contains several classes that you can use in your project easily.

Features

  • Checking the global variables on browsers (window.ethereum)
  • Force users to use MetaMask & Checking MetaMask that is it lock or not
  • Send sign request and get users' accounts

Install

npm i web3sign

How to use

    import Web3Sign from "web3sign";
    const web3sign = new Web3Sign()
    
    try {
        web3sign.getAccount().then((response) => {
            console.log(response)
            // More code here
        })
    
    } catch (e) {
        console.error(e)
    }

Output

Output of web3sign, web3

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.