@dashevo/wallet-lib
Version:
Light wallet library for Dash
22 lines (12 loc) • 1.08 kB
Markdown
# Examples
## Offline cold-wallet usage :
The wallet can handle a lack of connectivity. This could allow the use of the wallet library in an offline way.
Such uses case would be to generate a bunch of addresses that you could manually import into a database (for rolling incoming addresses)
You also have ways to import a known address, transaction, account or any type of data that you could wish to have via the network,
thus allowing you to use the wallet-library without connectivity.
See here [sample code](https://github.com/dashpay/platform/blob/master/packages/wallet-lib/examples/offline-wallet.js)
## Offline message signing :
See here [sample code](https://github.com/dashpay/platform/blob/master/packages/wallet-lib/examples/offline-wallet-signing-message.js)
## Client usage
- From Mnemonic: [sample code](https://github.com/dashpay/platform/blob/master/packages/wallet-lib/examples/client-usage.js)
- From PrivateKey: [sample code](https://github.com/dashpay/platform/blob/master/packages/wallet-lib/examples/client-usage-single-privateKey.js)