Extends
BaseWallet
Constructors
new Wallet()
key, optionally connected to provider.
Parameters
Returns
Wallet
Overrides
BaseWallet.constructor
Source
wallet/wallet.ts:34Properties
Accessors
address
Returns
string
Source
wallet/base-wallet.ts:71privateKey
Returns
string
Source
wallet/base-wallet.ts:91signingKey
Returns
SigningKey
Source
wallet/base-wallet.ts:81Methods
connect()
Parameters
Returns
Wallet
The connected wallet.
Overrides
BaseWallet.connect
Source
wallet/wallet.ts:49encrypt()
password.
If progressCallback is specified, it will receive periodic updates as the encryption process progresses.
Parameters
Returns
Promise<string>
The encrypted JSON wallet.
Source
wallet/wallet.ts:62encryptSync()
password.
It is preferred to use the async version instead, which allows a
ProgressCallback to keep the user informed.
This method will block the event loop (freezing all UI) until it is complete, which may be a non-trivial
duration.
Parameters
Returns
string
The encrypted JSON wallet.
Source
wallet/wallet.ts:79getAddress()
Parameters
Returns
Promise<string>
The wallet address.
Inherited from
BaseWallet.getAddress
Source
wallet/base-wallet.ts:103signMessage()
Parameters
Returns
Promise<string>
The signed message.
Inherited from
BaseWallet.signMessage
Async
Source
wallet/base-wallet.ts:161signMessageSync()
message signed with this wallet.
Parameters
Returns
string
The serialized signature.
Inherited from
BaseWallet.signMessageSync
Source
wallet/base-wallet.ts:173signTransaction()
Parameters
Returns
Promise<string>
The signed transaction.
Inherited from
BaseWallet.signTransaction
Source
wallet/base-wallet.ts:123signTypedData()
Parameters
Returns
Promise<string>
The signed typed data.
Inherited from
BaseWallet.signTypedData
Async
Source
wallet/base-wallet.ts:186fromEncryptedJson()
json with password.
If progress is provided, it is called periodically during decryption so that any UI can be updated.
Parameters
Returns
Promise<Wallet>
The decrypted wallet.
Source
wallet/wallet.ts:111fromEncryptedJsonSync()
json with password.
The fromEncryptedJson method is preferred, as this method will lock up and
freeze the UI during decryption, which may take some time.
Parameters
Returns
QuaiHDWallet | Wallet
The decrypted wallet.
