Interface MessageTonWalletTransfer

Represents a transfer with the TON wallet of the current user. Subtype of MessageContent.

interface MessageTonWalletTransfer {
    @type: "messageTonWalletTransfer";
    amount: number;
    comment: string;
    is_comment_encrypted?: boolean;
    peer_address: string;
    sender_user_id: number;
    transaction_id: string;
}

Properties

@type: "messageTonWalletTransfer"
amount: number

The amount of received cryptocurrency, in the smallest units of the cryptocurrency; negative for outgoing transactions.

comment: string

Comment added to the transaction.

is_comment_encrypted?: boolean

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

peer_address: string

Address in the TON blockchain of the transaction peer.

sender_user_id: number

Sender of the transfer; 0 if unknown.

transaction_id: string

Unique identifier of the transaction; may be empty if the transfer isn't send yet. Use getTonWalletTransaction to get additional information about the transaction.