SendTonWalletTransfer class
Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet") Returns TonWalletTransferResult
- Inheritance
-
- Object
- TdFunction
- SendTonWalletTransfer
- Available extensions
- Annotations
-
- @immutable
Constructors
Properties
- address → String
-
address Address in the TON blockchain of the transaction peer
final
- amount → int
-
amount The amount of the sent cryptocurrency, in the smallest units of
the cryptocurrency
final
- comment → String
-
comment Comment added to the transaction
final
- gaslessTransferData → String
-
gaslessTransferData Serialized data for gasless cryptocurrency transfer
request; pass an empty string to force a regular request. The minimum
allowed transfer amount for a gasless transfer is
getOption("ton_wallet_gasless_transfer_amount_min")
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isCommentEncrypted → bool
-
isCommentEncrypted Pass true if the comment is encrypted and must be
decrypted using the receiver's or sender's private key
final
- regularTransferData → String
-
regularTransferData Serialized data for regular cryptocurrency transfer
request. The minimum allowed transfer amount is
getOption("ton_wallet_transfer_amount_min")
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendingId → int
-
sendingId Non-persistent identifier, which will be returned back in
messageSendingStatePending object and can be used to match sent messages
and corresponding updateNewMessage updates
final
- userId → int
-
userId Identifier of the user who will receive the transfer; pass 0 if
unknown
final
Methods
-
copyWith(
{int? userId, String? address, int? amount, String? comment, bool? isCommentEncrypted, int? sendingId, String? regularTransferData, String? gaslessTransferData}) → SendTonWalletTransfer -
Available on SendTonWalletTransfer, provided by the SendTonWalletTransferExtensions 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