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.
- Inheritance
-
- Object
- CoordinatorRequest<
ImportCompleteEvent> - ImportWalletCommand
Constructors
Properties
-
addresses
→ List<
String> ? -
With resume: scan only these addresses of the wallet, for coins paid
to an address it handed out, instead of discovering its addresses up
to gapLimit. Each must be an address the wallet holds; transactions
it has recorded are skipped, so the scan can be repeated.
final
- correlationId → String
-
The correlation ID of the message.
no setterinherited
- gapLimit → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lockKeyWifs
→ List<
String> -
With xpriv: lock keys (WIF) outside the account the wallet is given
before the scan (bead spiffyvault-mnz.5), so HODLocker coins in its
history that are locked to one are found as its own and can be
unlocked. An application derives them from the seed the account came
from, such as RelayX's paymail key at
m/0'/236'/0'/0/0.final -
metadata
→ Map<
String, dynamic> -
The metadata of the message.
no setter
- mnemonic → String?
-
final
- networkType → String?
-
The wallet's network (
'main','test'or'regtest', in any accepted spelling). Null: the network the system was initialized with (LibSpiffyActorSystem.initialize(networkType:)).final - replyTimeout → Duration
-
How long
WalletCoordinator.askwaits for the reply when the caller gives no timeout. A request that is still running then is not cancelled: its reply arrives on the event stream later.no setteroverride - replyTo → ActorRef?
-
The actor to reply to.
no setterinherited
- requestId → String
-
Identifies this request; its reply carries it back.
finalinherited
- resume → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The timestamp of the message.
finalinherited
- 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