UNPKG

dvf-client-js

Version:

<img src="https://avatars1.githubusercontent.com/u/56512535?s=200&v=4" align="right" />

13 lines (11 loc) 250 B
/** * Unlocks an account for given duration **/ module.exports = (dvf, password, duration = 60) => { const {web3} = dvf // TODO: can we improve this somehow? return web3.eth.personal.unlockAccount( dvf.get('account'), password ) }