UNPKG
@gateway.fm/gtw-dvf-client-js
Version:
latest (3.1.7)
3.1.7
3.1.6
3.1.5
DVF client js lib with gateway.fm rpc endpoints
github.com/gateway-fm/gtw-dvf-client-js
@gateway.fm/gtw-dvf-client-js
/
src
/
api
/
account
/
unlock.js
13 lines
(11 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * 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 ) }