Interface 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.

interface GiftOnChainPurchaseOfferTransaction {
    @type: "giftOnChainPurchaseOfferTransaction";
    execution_allowance_amount: string;
    expiration_date: number;
    fine_amount: string;
    forward_amount: string;
    gasless_message: TonWalletMessage;
    message: TonWalletMessage;
    offer_address: string;
    rent_budget_amount: string;
}

Properties

@type: "giftOnChainPurchaseOfferTransaction"
execution_allowance_amount: string

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

expiration_date: number

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

fine_amount: string

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.

forward_amount: string

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

gasless_message: TonWalletMessage

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

The message that must be sent for a regular transfer.

offer_address: string

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

rent_budget_amount: string

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