# beedu-web3

Latest version **1.1.6** (published 2022-10-18) · BEEDU license · 0 weekly downloads

## Install

```sh
npm install beedu-web3
pnpm add beedu-web3
yarn add beedu-web3
bun add beedu-web3
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2022-10-18 |
| First published | 2022-09-29 |
| Weekly downloads | 0 |
| License | BEEDU |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 32.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | hunglt2604 |
| Keywords | web3, wallet, crypto, multiple wallet |

## Links

- npm: https://www.npmjs.com/package/beedu-web3
- Repository: https://gitlab.com/hunglt260497/beedu-web3
- Homepage: https://beedu.io/
- Issues: https://gitlab.com/hunglt260497/beedu-web3.git/issues
- npm.io page: https://npm.io/package/beedu-web3

## Dependencies (2)

- [web3](https://npm.io/package/web3.md) ^1.7.3
- [@walletconnect/web3-provider](https://npm.io/package/@walletconnect/web3-provider.md) ^1.7.7

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2022-10-18
- 1.1.5 — 2022-10-18
- 1.1.4 — 2022-10-12
- 1.1.3 — 2022-10-06
- 1.1.2 — 2022-10-03
- 1.1.1 — 2022-09-30
- 1.0.1 — 2022-09-29
- 1.0.0 — 2022-09-29

## README

<p align="center">
    <a href="https://beedu.io/">
    <img width="132" height="101" src="https://app.bework.vn/favicon.ico" class="attachment-full size-full" alt="Moralis Build Serverless web3 apps" loading="lazy" /></a>
</p>

<h2 align="center">BEEDU WEB 3 SDK for JavaScript</h2>


Just need 1 correct config file, we will help you with all the rest, very simple:
- A syntax for 1 function even with multiple wallets
- Optimization of performance and speed of deployment
- Simple Simplified syntax, regardless of token or base currency
- In addition, we provide specialized helper functions for web3 related jobs
<br>

## Getting Started
```
    npm install beedu-web3
```

### configuring

create file config.js in struct or use default file config

```
    {
  "NETWORK": {
  "TESTNET": {
    "base": {
      "ETH": {
        "chainId": "0x3",
        "decimal": 18,
        "link": "https://api-ropsten.etherscan.io/api"
      },
      "BNB": {
        "chainId": "0x61",
        "decimal": 18,
        "link": "https://api-testnet.bscscan.com/api"
      }
    },
    "token": {
      "HUB": {
        "decimal": 8,
        "base": "BNB",
        "contract-address": "0x173c87073c762d4a99343c7e54e619d7c55f85fb"
      }
    }
  },
  "MAINNET": {
    "base": {
      "ETH": {
        "chainId": "0x1",
        "decimal": 18,
        "link": "https://api.etherscan.io/api"
      },
      "BNB": {
        "chainId": "0x38",
        "decimal": 18,
        "link": "https://api.bscscan.com/api"
      }
    },
    "token": {
      "HUB": {
        "decimal": 8,
        "base": "BNB",
        "contract-address": "0x46bCBBB0D888dF90Eda86c9CA159C7727a8731D5"
      }
    }
  }
  },
  "FUNCTION": {
    "getBalance": {
      "base": "eth_getBalance",
      "token": "balanceOf"
    }
  }
}

```

<p align="center">
    NETWORK has 2 type: MAINNET AND TESTNET
</p>  
<p align="center">
    Each network has 2 type: base and token
</p>
<p align="center">
    Config FUNCTION custom in library
</p>


<h1> How to use? </h1>
<p>Very simple</p>

```
import BeeduWeb3 from 'beedu-web3'

BeeduWeb3.login('METAMASK')
```
<p>Provide facilities</p>


```angular2html
    - transferToken
    - approveToken
    - switchNetwork
    - ....

    SPECIAL
    
    - handle(currency, nameMethod, params: any[] = [])

    
```


```
NOTE (IMPORTANT): You must login using the BeeduWeb3.login() function for the library to work
```

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