UNPKG

@gateway.fm/gtw-dvf-client-js

Version:

DVF client js lib with gateway.fm rpc endpoints

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 ) }