ReplaceTonWallet class
Replaces the current TON wallet with another existing v6r2 wallet or changes private key of the current TON wallet; can be used only if getOption("can_use_ton_wallet") Returns Ok
- Inheritance
-
- Object
- TdFunction
- ReplaceTonWallet
- Available extensions
- Annotations
-
- @immutable
Constructors
- ReplaceTonWallet({required String password, required String anchorPublicKey, required TonWalletOwnershipProof proof})
-
const
Properties
- anchorPublicKey → String
-
anchorPublicKey Original public key of the new TON wallet
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- password → String
-
password Password of the current user; pass an empty string unless
receive an error with a message "PASSWORD_MISSING" for a passwordless
request
final
- proof → TonWalletOwnershipProof
-
proof Proof of ownership of the new private key of the TON wallet; use
getTonWalletOwnershipProofChallenge to get a challenge for the proof
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? password, String? anchorPublicKey, TonWalletOwnershipProof? proof}) → ReplaceTonWallet -
Available on ReplaceTonWallet, provided by the ReplaceTonWalletExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String