@dashevo/wallet-lib
Version:
Light wallet library for Dash
14 lines (11 loc) • 612 B
Markdown
**Usage**: `account.events.on('unconfirmed_balance_changed', fn)`
**Description**: When not offline, the wallet will keep track of new transaction incoming or outgoing, these cause balance modification that this method warn about
**Important**: Standardization on event might happen soon, to avoid breaking change, use the EVENTS constant as described below.
Example:
```js
const {EVENTS} = require('@dashevo/wallet-lib');
const onUnconfirmedBalanceChange = ()=>{
console.log('Unconfirmed Balance changed');
}
account.events.on(EVENTS.UNCONFIRMED_BALANCE_CHANGED, onUnconfirmedBalanceChange);
```