haskell-tdlib-2.1.31.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.GiftOnChainPurchaseOfferTransaction

Documentation

data GiftOnChainPurchaseOfferTransaction Source #

Constructors

GiftOnChainPurchaseOfferTransaction

Contains information about a transaction that must be sent from the TON wallet of the current user to send, accept, or cancel an on-chain gift purchase offer. Use sendTonWalletTransaction with regular_transaction_data and gasless_transaction_data created from message and gasless_message respectively to send the transaction. Successful sending of the transaction doesn't mean that the operation was completed; the result of the operation must be checked in the corresponding messageUpgradedGiftOnChainPurchaseOffer message in the chat 777000

Fields

  • offer_address :: Maybe Text

    Address of the smart contract of the offer on the TON blockchain

  • expiration_date :: Maybe Int

    Point in time (Unix timestamp) when the offer will expire

  • message :: Maybe TonWalletMessage

    The message that must be sent for a regular transfer

  • gasless_message :: Maybe TonWalletMessage

    The message that must be sent for a gasless transfer; may be null if gasless transfer isn't available

  • rent_budget_amount :: Maybe Int

    The amount included in the message for rent of the offer smart contract, in the smallest units of TON Grams; 0 if none

  • execution_allowance_amount :: Maybe Int

    The amount included in the message for execution of the offer smart contract, in the smallest units of TON Grams; 0 if none

  • forward_amount :: Maybe Int

    The amount forwarded with the gift transfer on acceptance of the offer, in the smallest units of TON Grams; 0 if none

  • fine_amount :: Maybe Int

    The expected fine for cancellation of the offer, in the smallest units of TON Grams; 0 if none. The final fine will be known after the cancellation is executed on the TON blockchain