# @le7el/web3_wallet

> API to connect and interact with web3 wallets

Latest version **0.4.5** (published 2025-01-29) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install @le7el/web3_wallet
pnpm add @le7el/web3_wallet
yarn add @le7el/web3_wallet
bun add @le7el/web3_wallet
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.5 |
| Published | 2025-01-29 |
| First published | 2022-12-13 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 6.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | LE7EL DAO |
| Maintainers | wenzelvk, inaniyants |
| Keywords | Web3 wallet, Wallet |

## Links

- npm: https://www.npmjs.com/package/@le7el/web3_wallet
- Repository: https://gitlab.com/le7el/build/web3_wallet
- Issues: https://gitlab.com/le7el/build/web3_wallet/issues
- npm.io page: https://npm.io/package/@le7el/web3_wallet

## Dependencies (9)

- [ajv](https://npm.io/package/ajv.md) ^8.17.1
- [ethers](https://npm.io/package/ethers.md) ^5.7.2
- [@web3-onboard/core](https://npm.io/package/@web3-onboard/core.md) ^2.23.0
- [ethers-decode-error](https://npm.io/package/ethers-decode-error.md) ^1.0.0
- [@web3-onboard/ledger](https://npm.io/package/@web3-onboard/ledger.md) ^2.7.1
- [@web3-onboard/trezor](https://npm.io/package/@web3-onboard/trezor.md) ^2.4.6
- [@web3-onboard/coinbase](https://npm.io/package/@web3-onboard/coinbase.md) ^2.4.1
- [@web3-onboard/walletconnect](https://npm.io/package/@web3-onboard/walletconnect.md) ^2.6.1
- [@web3-onboard/injected-wallets](https://npm.io/package/@web3-onboard/injected-wallets.md) ^2.11.2

## Recent versions

- 0.4.5 (latest) — 2025-01-29
- 0.4.4 — 2025-01-29
- 0.4.3 — 2025-01-29
- 0.4.2 — 2025-01-29
- 0.4.1 — 2025-01-29
- 0.4.0 — 2025-01-29
- 0.3.31 — 2024-12-07
- 0.3.30 — 2024-12-07
- 0.3.29 — 2024-12-07
- 0.3.28 — 2024-12-07
- 0.3.27 — 2024-12-06
- 0.3.26 — 2024-12-06
- 0.3.25 — 2024-12-06
- 0.3.24 — 2024-12-06
- 0.3.23 — 2024-12-06
- … 50 more at https://npm.io/package/@le7el/web3_wallet/versions

## README

# Web3 Wallet

Libary to connect and interact with web3 wallets
Supported wallet providers: metamask, wallet-connect

## Installation

```bash
npm install @le7el/web3_wallet
```

## Getting started
This library exposes multiple publicly accesible methods, which could help in different web3 wallet use cases

##### Typical library usage for connecting a wallet and listen for its changes:
```js
import { useProvider, connectWallet, listenWallet } from '@le7el/web3_wallet'

useProvider('metamask')
  .then(connectWallet)
  .then(connectedWalletAddress => {
    console.log('wallet connection success')
  })
  .then(() => {
    // in case when you need to listen on wallet changes, like: account changed or network changed,
    // you'll also need to call listenWallet with approproate callbacks
    const onWalletChange = (newWalletAddress) => {}
    const onWalletError = (error) => {}

    listenWallet(onWalletChange, onWalletError)
  })
  .catch(error => {
    console.log('wallet connection failed')
  })
```

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