@dashevo/wallet-lib
Version:
Light wallet library for Dash
17 lines (11 loc) • 1.12 kB
Markdown
**Usage**: `storage.createWallet(walletId, network, mnemonic, type)`
**Description**: Create a wallet in store based on the specified params.
**Notes**: This is an internal advanced function called on the creation of a Wallet.
Parameters:
| parameters | type | required | Description |
|------------------------|-------------------|-------------------| ------------------------------------------------------------------------|
| **walletId** | String | yes | The wallet id to create |
| **network** | Network/String | no (Def: testnet) | The network for the wallet |
| **mnemonic** | Mnemonic/String | no (Def: null) | When applicable, the mnemonic used to generate the wallet |
| **type** | String | no (Def: null) | The wallet type to create |
Returns: Boolean