| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
TD.Query.GetGiftOnChainPurchaseTransaction
Documentation
data GetGiftOnChainPurchaseTransaction Source #
Returns a transaction that must be sent from the TON wallet of the current user to buy an upgraded gift for which upgradedGift.uses_on_chain_resale is true; can be used only if getOption("can_use_ton_wallet"). Gifts for which giftResaleParameters.is_fixed_on_chain is true can be bought only if getOption("can_buy_on_chain_fixed_price_gifts") is true, and other gifts can be bought only if getOption("can_buy_on_chain_gifts") is true. The type of the returned transaction depends on the type of the sale. The gift will be received by the new owner after the transaction is executed on the TON blockchain. If the gift is bought for the current user, then it will be received by the TON wallet of the current user, and will be shown on the user's profile page if it is still in the wallet. Returns GiftOnChainSaleTransaction
Constructors
| GetGiftOnChainPurchaseTransaction | |
Fields
| |