# @dashevo/wallet-lib

> Light wallet library for Dash

Latest version **12.0.3** (published 2026-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dashevo/wallet-lib
pnpm add @dashevo/wallet-lib
yarn add @dashevo/wallet-lib
bun add @dashevo/wallet-lib
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 12.0.3 |
| Published | 2026-11-03 |
| First published | 2019-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 904.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Dash Core Team |
| Maintainers | shumkov, alex-werner, nmarley, cofresi, evodeploy, jawid-h |
| Keywords | cryptocurrency, dash, wallet |

## Links

- npm: https://www.npmjs.com/package/@dashevo/wallet-lib
- Repository: https://github.com/dashevo/wallet-lib
- Homepage: https://github.com/dashevo/wallet-lib#readme
- Issues: https://github.com/dashevo/wallet-lib/issues
- npm.io page: https://npm.io/package/@dashevo/wallet-lib

## Dependencies (10)

- [cbor](https://npm.io/package/cbor.md) ^8.0.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.23
- [pbkdf2](https://npm.io/package/pbkdf2.md) ^3.1.7
- [winston](https://npm.io/package/winston.md) ^3.2.1
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.2.0
- [setimmediate](https://npm.io/package/setimmediate.md) ^1.0.5
- [@dashevo/wasm-dpp](https://npm.io/package/@dashevo/wasm-dpp.md) 5.0.3
- [@dashevo/dapi-client](https://npm.io/package/@dashevo/dapi-client.md) 5.0.3
- [@dashevo/grpc-common](https://npm.io/package/@dashevo/grpc-common.md) 5.0.3
- [@dashevo/dashcore-lib](https://npm.io/package/@dashevo/dashcore-lib.md) ~0.26.1

## 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

- 12.0.3 (latest) — 2026-11-03
- 12.1.0-dev.1 (5.1-dev) — 2026-11-13
- 12.0.0-rc.8 (5.0-rc) — 2026-10-23
- 12.0.0-beta.6 (5.0-beta) — 2026-10-13
- 11.2.0-beta.7 (4.2-beta) — 2026-09-29
- 11.2.0-dev.11 (4.2-dev) — 2026-09-15
- 11.1.0-rc.3 (4.1-rc) — 2026-07-27
- 11.1.0-beta.2 (4.1-beta) — 2026-07-23
- 11.0.0-rc.2 (4.0-rc) — 2026-06-12
- 11.0.0-beta.4 (4.0-beta) — 2026-06-09
- 10.1.0-dev.8 (3.1-dev) — 2026-05-28
- 10.0.1-hotfix.4 (3.0-hotfix) — 2026-02-05
- 10.0.0-rc.3 (3.0-rc) — 2026-01-20
- 10.0.0-dev.11 (3.0-dev) — 2026-01-08
- 9.2.0-dev.2 (2.2-dev) — 2025-11-28
- … 460 more at https://npm.io/package/@dashevo/wallet-lib/versions

## README

# Wallet Library

[![NPM Version](https://img.shields.io/npm/v/@dashevo/wallet-lib)](https://www.npmjs.com/package/@dashevo/wallet-lib)
[![Build Status](https://github.com/dashpay/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashpay/platform/actions/workflows/release.yml)
[![Release Date](https://img.shields.io/github/release-date/dashpay/platform)](https://github.com/dashpay/platform/releases/latest)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen)](https://github.com/RichardLitt/standard-readme)

A pure and extensible JavaScript Wallet Library for Dash

**Warning: This library should only be used in production when connected to trusted nodes. Although
it provides easy access to wallet functionality without requiring a full node, it does not verify
synchronized blockchain data (e.g., the masternode list, InstantSend transactions, ChainLocks) or
check transactions against block headers.**

## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Documentation](#documentation)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)


## Background

[Dash](https://www.dash.org) is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Dash network allows for highly resilient Dash infrastructure, and the developer community needs reliable, open-source tools to implement Dash apps and services.

## Install

### Node

In order to use this library, you will need to add it to your project as a dependency.

Having [NodeJS](https://nodejs.org/) installed, just type in your terminal :

```sh
npm install @dashevo/wallet-lib
```

### CDN Standalone

For browser usage, you can also directly rely on unpkg. Below, we also assume you use [localForage](https://github.com/localForage/localForage) as your persistence adapter.

```
<script src="https://unpkg.com/@dashevo/wallet-lib"></script>
<script src="https://unpkg.com/localforage"></script>
const wallet = new Wallet({adapter: localforage});
```

## Usage

In your file, where you want to execute it :

```js
const { Wallet, EVENTS } = require('@dashevo/wallet-lib');

const wallet = new Wallet();

// We can dump our initialization parameters
const mnemonic = wallet.exportWallet();

// Hook on headers and TX sync progress events
wallet.on(EVENTS.HEADERS_SYNC_PROGRESS, (progressInfo) => {
  const {
    confirmedProgress,
    totalProgress,
    confirmedSyncedCount,
    totalSyncedCount,
    totalCount
  } = progressInfo;
})

wallet.on(EVENTS.TRANSACTIONS_SYNC_PROGRESS, (progressInfo) => {
  const {
    progress,
    syncedBlocksCount,
    totalBlocksCount,
    transactionsCount
  } = progressInfo;
})

wallet.getAccount().then((account) => {
  // At this point, account has fetch all UTXOs if they exists
  const balance = account.getTotalBalance();
  console.log(`Balance: ${balance}`);

  // We easily can get a new address to fund
  const { address } = account.getUnusedAddress();
});
```

Wallet will by default connects to DAPI and use either localforage (browser based device) or a InMem adapter.
Account will by default be on expected BIP44 path (...0/0).

### Transports:

Insight-Client has been removed from MVP and is not working since Wallet-lib v3.0.

- [DAPI-Client](https://github.com/dashpay/platform/tree/master/packages/js-dapi-client)

### Adapters :

- [LocalForage](https://github.com/localForage/localForage)
- [ReactNative AsyncStorage](https://facebook.github.io/react-native/docs/asyncstorage)

## Documentation

You can see some [examples here](docs/usage/examples.md).

More extensive documentation is available at https://dashpay.github.io/platform/Wallet-library/ along with additional [examples & snippets](https://dashpay.github.io/platform/Wallet-library/usage/examples/).

## Maintainers

Wallet-Lib is maintained by the [Dash Core Developers](https://www.github.com/dashpay).
We want to thank all members of the community that have submitted suggestions, issues and pull requests.

## Contributing

Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues/new/choose) or submit PRs.

## License

[MIT](LICENSE) &copy; Dash Core Group, Inc.

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