Interface MessageUpgradedGiftOnChainPurchaseOffer

An on-chain offer to purchase an upgraded gift was sent or received. Subtype of MessageContent.

interface MessageUpgradedGiftOnChainPurchaseOffer {
    @type: "messageUpgradedGiftOnChainPurchaseOffer";
    expiration_date: number;
    fee_basis_points: number;
    gift: UpgradedGift;
    gram_amount: string;
    is_buyer?: boolean;
    offer_address: string;
    offer_message_id: number;
    state: GiftOnChainPurchaseOfferState;
}

Properties

@type: "messageUpgradedGiftOnChainPurchaseOffer"
expiration_date: number

Point in time (Unix timestamp) when the offer will expire or has expired.

fee_basis_points: number

The fee paid by the buyer in addition to the price, in basis points; 1 basis point is 0.01%.

The gift.

gram_amount: string

The price offered for the gift, in the smallest units of TON Grams; the owner of the gift receives the full price if the offer is accepted.

is_buyer?: boolean

True, if the offer was sent by the current user; otherwise, the offer was received by the current user as the owner of the gift.

offer_address: string

Address of the smart contract of the offer on the TON blockchain; can be used to match TON wallet transactions related to the offer.

offer_message_id: number

Identifier of the message with the offer if this message was received after the offer has ended; otherwise, 0. May be an identifier of a deleted message.

State of the offer.