Interface SendTonWalletTransfer

Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet"). Request type for Tdjson#sendTonWalletTransfer.

interface SendTonWalletTransfer {
    @type: "sendTonWalletTransfer";
    address: string;
    amount: number;
    comment: string;
    gasless_transfer_data: string;
    is_comment_encrypted?: boolean;
    regular_transfer_data: string;
    sending_id: number;
    user_id: number;
}

Properties

@type: "sendTonWalletTransfer"
address: string

Address in the TON blockchain of the transaction peer.

amount: number

The amount of the sent cryptocurrency, in the smallest units of the cryptocurrency.

comment: string

Comment added to the transaction.

gasless_transfer_data: string

Serialized data for gasless cryptocurrency transfer request; pass an empty string to force a regular request. The minimum allowed transfer amount for a gassless transfer is getOption("ton_wallet_gasless_transfer_amount_min").

is_comment_encrypted?: boolean

Pass true if the comment is encrypted and must be decrypted using the receiver's or sender's private key.

regular_transfer_data: string

Serialized data for regular cryptocurrency transfer request. The minimum allowed transfer amount is getOption("ton_wallet_transfer_amount_min").

sending_id: number

Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.

user_id: number

Identifier of the user who will receive the transfer; pass 0 if unknown.