Methods
create
- create(passphrase?: undefined | string): Promise<string>
-
Parameters
-
Optional passphrase: undefined | string
Returns Promise<string>
An account
getList
- getList(): Promise<string[]>
-
Returns Promise<string[]>
A list of accounts
importRaw
- importRaw(secret: H256 | string, passphrase?: undefined | string): Promise<string>
-
Parameters
-
secret: H256 | string
-
Optional passphrase: undefined | string
Returns Promise<string>
The account
remove
- remove(address: PlatformAddress | string, passphrase?: undefined | string): Promise<null>
-
Parameters
-
-
Optional passphrase: undefined | string
Returns Promise<null>
sign
- sign(messageDigest: H256 | string, address: PlatformAddress | string, passphrase?: undefined | string): Promise<string>
-
Parameters
-
messageDigest: H256 | string
-
-
Optional passphrase: undefined | string
Returns Promise<string>
unlock
- unlock(address: PlatformAddress | string, passphrase?: undefined | string, duration?: undefined | number): Promise<null>
-
Parameters
-
-
Optional passphrase: undefined | string
-
Optional duration: undefined | number
Returns Promise<null>
Creates a new account.