ImportWalletCommand class

Import a wallet from extended private key or WIF.

With resume the wallet must already exist and no key is given: the ImportActor reads it from secure storage, skips the addresses and transactions the wallet already holds and imports the rest. The same command resumes an import after the host was killed, retries one that finished with ImportCompleteEvent.transactionsFailed above zero, and rescans a wallet for new history.

Constructors

ImportWalletCommand({required String walletId, required String walletName, String? xpriv, String? mnemonic, String? wif, int gapLimit = 20, String networkType = 'test', bool resume = false})

Properties

correlationId → String
The correlation ID of the message.
no setter
gapLimit → int
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>
The metadata of the message.
no setter
mnemonic → String?
final
networkType → String
final
replyTo → ActorRef?
The actor to reply to.
no setter
resume → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
The timestamp of the message.
no setter
walletId → String
final
walletName → String
final
wif → String?
final
xpriv → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited