GetGiftOnChainListingTransaction class
Returns a transaction that must be sent from the TON wallet of the current user to put an upgraded gift for which upgradedGift.uses_on_chain_resale is true up for sale, or to change the price of a gift for which giftResaleParameters.is_fixed_on_chain and giftResaleParameters.can_be_managed are true; can be used only if getOption("can_use_ton_wallet"). The type of the sale is chosen by the server. The gift is put up for sale only after the transaction is executed on the TON blockchain and the sale smart contract confirms that it has received the gift. The price of the gift minus the fee specified in upgradedGift.fee_basis_points will be received by the TON wallet of the current user when the gift is sold. If giftResaleParameters.is_fixed_on_chain is false, then the current sale must be canceled first using getGiftOnChainDelistingTransaction to change the price of the gift Returns GiftOnChainSaleTransaction
- Inheritance
-
- Object
- TdFunction
- GetGiftOnChainListingTransaction
- Available extensions
- Annotations
-
- @immutable
Constructors
- GetGiftOnChainListingTransaction({required String giftName, required int gramAmount})
-
const
Properties
- giftName → String
-
giftName Name of the upgraded gift
final
- gramAmount → int
-
gramAmount The price of the gift that the buyer will pay, in the
smallest units of TON Grams. The price in 1/100 of a Gram must be in the
range
getOption("gift_resale_gram_cent_count_min")-getOption("gift_resale_gram_cent_count_max")
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? giftName, int? gramAmount}) → GetGiftOnChainListingTransaction -
Available on GetGiftOnChainListingTransaction, provided by the GetGiftOnChainListingTransactionExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String