JSPM

@dashevo/wallet-lib

7.14.0-dev.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 371
  • Score
    100M100P100Q93293F
  • License MIT

Light wallet library for Dash

Package Exports

  • @dashevo/wallet-lib
  • @dashevo/wallet-lib/src/transport/DAPIClientTransport/DAPIClientTransport

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dashevo/wallet-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Wallet Library

Package Version Build Status

A pure and extensible JavaScript Wallet Library for Dash

Find more in the :

State

Under active development.

Principles

Dash 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 installed, just type in your terminal :

npm install @dashevo/wallet-lib

CDN Standalone

For browser usage, you can also directly rely on unpkg. Below, we also assume you use localforage as your persistance 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 :

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

const wallet = new Wallet();
wallet.getAccount((account)=>{
    // Do something with account.

});

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.

Adapters :

Examples

You can see here, some Examples.

Credits

Wallet-Lib is maintained by the Dash Core Developers. We want to thanks all member of the community that have submited suggestions, issues and pull requests.

License

MIT © Dash Core Group, Inc.