SendTonWalletTransfer class final
Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet")
Returns TonWalletTransferResult.
- Inheritance
-
- Object
- TdFunction<
TonWalletTransferResult> - SendTonWalletTransfer
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})
-
Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet")
const
Properties
- address → String
-
Address in the TON blockchain of the transaction peer
final
- amount → int
-
The amount of the sent cryptocurrency, in the smallest units of the cryptocurrency
final
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - comment → String
-
Comment added to the transaction
final
- gaslessTransferData → String
-
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 setterinherited
- isCommentEncrypted → bool
-
Pass true if the comment is encrypted and must be decrypted using the receiver's or sender's private key
final
- regularTransferData → String
-
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
-
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
-
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 -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.