Interface GiftResaleParameters

Describes parameters of a unique gift available for resale.

interface GiftResaleParameters {
    @type: "giftResaleParameters";
    can_be_managed?: boolean;
    gram_amount: string;
    gram_cent_count: number;
    gram_only?: boolean;
    is_fixed_on_chain?: boolean;
    star_count: number;
}

Properties

@type: "giftResaleParameters"
can_be_managed?: boolean

True, if the sale of the gift is managed by the current user. If upgradedGift.uses_on_chain_resale is true, then the sale can be canceled using getGiftOnChainDelistingTransaction, and the price can be changed using getGiftOnChainListingTransaction if is_fixed_on_chain is true. Otherwise, the price can be changed and the sale can be canceled using setGiftResalePrice.

gram_amount: string

Exact resale price of the gift, in the smallest units of TON Grams; must be passed to getGiftOnChainPurchaseTransaction if upgradedGift.uses_on_chain_resale is true.

gram_cent_count: number

Resale price of the gift in 1/100 of a TON Gram.

gram_only?: boolean

True, if the gift can be bought only using Grams.

is_fixed_on_chain?: boolean

True, if the gift is sold on-chain using a fixed-price sale contract.

star_count: number

Resale price of the gift in Telegram Stars.