# web3sign

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

Latest version **1.0.3** (published 2022-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install web3sign
pnpm add web3sign
yarn add web3sign
bun add web3sign
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-03-12 |
| First published | 2022-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Amir Rahimi |
| Maintainers | web3senior |
| Keywords | ethereum, wallet, web3, web3js, metamask, web3-javascript, etherjs, web3-react |

## Links

- npm: https://www.npmjs.com/package/web3sign
- Repository: https://github.com/web3senior/web3sign
- Homepage: https://github.com/web3senior/web3sign#readme
- Issues: https://github.com/web3senior/web3sign/issues
- npm.io page: https://npm.io/package/web3sign

## Recent versions

- 1.0.3 (latest) — 2022-03-12
- 1.0.2 — 2022-03-12

## README

# 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](https://ipfs.io/ipfs/QmNPvCy8rb7mXigMrRYZwoBje7swSWkb2FB41xNRszXbu9?filename=web3sign-cosnole.png "Console")

---
_Source: https://npm.io/package/web3sign · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
