@dashevo/wallet-lib
Version:
Light wallet library for Dash
20 lines (14 loc) • 1.21 kB
Markdown
**Usage**: `new Identities(wallet)`
**Description**: This method creates a new Identities instance associated to the given wallet.
Parameters:
| parameters | type | required | Description |
|-------------------------------------------|-----------------|--------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **wallet** | Wallet | yes | A valid [wallet](../wallet/Wallet.md) instance |
Returns : Identities instance.
Examples (assuming a Wallet instance created) :
```js
const { Identities, Wallet } = require('@dashevo/wallet-lib');
const wallet = new Wallet();
const identities = new Identities(wallet);
identities.getIdentityHDKeyByIndex(0, 0);
```