SendTonWalletTransfer class

Sends TON Grams from the user's TON wallet; can be used only if getOption("can_use_ton_wallet") Returns TonWalletTransferResult

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

SendTonWalletTransfer({required int userId, required String address, required int amount, required String comment, required bool isCommentEncrypted, required int sendingId, required String regularTransferData, required String gaslessTransferData})
const

Properties

address → String
address Address on the TON blockchain of the transaction peer
final
amount → int
amount The sent amount, in the smallest units of TON Grams
final
comment → String
comment Comment added to the transaction
final
gaslessTransferData → String
gaslessTransferData Serialized data for a gasless 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 a regular 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 in the 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