Global

Methods

isAccountLocked(account) → {boolean}

判断当前账户是否锁定

Source:
Parameters:
Name Type Description
account string
Returns:
Type:
boolean

unlockAccountsIfNeeded(account, password, unlock_duration_sec) → {Promise.<void>}

Source:
Parameters:
Name Type Description
account
password
unlock_duration_sec
Returns:
Type:
Promise.<void>

unlockAccountsIfNeeded(accounts, passwords, unlock_duration_secopt)

多个账户解锁

Source:
Parameters:
Name Type Attributes Description
accounts Array.<object>

钱包下所有账户地址

passwords Array.<string>

账户所对应的密码

unlock_duration_sec number <optional>

时间戳(解锁时间)

unlockSingleAccountIfNeeded(account, password, unlock_duration_secopt)

多个账户解锁

Source:
Parameters:
Name Type Attributes Description
account object

账户地址

password string

账户密钥

unlock_duration_sec number <optional>

解锁时间长短