UNPKG

@rhino.fi/client-js

Version:
13 lines (11 loc) 252 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, ) }