Methods
changePassword
- changePassword(address: PlatformAddressValue, oldPassphrase: string, newPassphrase: string): Promise<null>
-
Parameters
-
address: PlatformAddressValue
-
oldPassphrase: string
-
newPassphrase: string
Returns Promise<null>
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: H256Value, passphrase?: undefined | string): Promise<string>
-
Parameters
-
secret: H256Value
-
Optional passphrase: undefined | string
Returns Promise<string>
The account
sendTransaction
- sendTransaction(params: object): Promise<object>
-
Parameters
-
params: object
-
account: PlatformAddressValue
-
Optional blockNumber?: undefined | number
-
Optional fee?: U64Value
-
Optional passphrase?: undefined | string
-
Returns Promise<object>
sign
- sign(messageDigest: H256Value, address: PlatformAddressValue, passphrase?: undefined | string): Promise<string>
-
Parameters
-
messageDigest: H256Value
-
address: PlatformAddressValue
-
Optional passphrase: undefined | string
Returns Promise<string>
unlock
- unlock(address: PlatformAddressValue, passphrase?: undefined | string, duration?: undefined | number): Promise<null>
-
Parameters
-
address: PlatformAddressValue
-
Optional passphrase: undefined | string
-
Optional duration: undefined | number
Returns Promise<null>
Changes the passpharse of the account