GiftOnChainPurchaseOfferTransaction class
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
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
- GiftOnChainPurchaseOfferTransaction({required String offerAddress, required int expirationDate, required TonWalletMessage message, TonWalletMessage? gaslessMessage, required int rentBudgetAmount, required int executionAllowanceAmount, required int forwardAmount, required int fineAmount})
-
const
Properties
- executionAllowanceAmount → int
-
executionAllowanceAmount The amount included in the message for
execution of the offer smart contract, in the smallest units of TON Grams;
0 if none
final
- expirationDate → int
-
expirationDate Point in time (Unix timestamp) when the offer will expire
final
- fineAmount → int
-
fineAmount 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
final
- forwardAmount → int
-
forwardAmount The amount forwarded with the gift transfer on acceptance
of the offer, in the smallest units of TON Grams; 0 if none
final
- gaslessMessage → TonWalletMessage?
-
gaslessMessage The message that must be sent for a gasless transfer; may
be null if gasless transfer isn't available
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- message → TonWalletMessage
-
message The message that must be sent for a regular transfer
final
- offerAddress → String
-
offerAddress Address of the smart contract of the offer on the TON
blockchain
final
- rentBudgetAmount → int
-
rentBudgetAmount The amount included in the message for rent of the
offer smart contract, in the smallest units of TON Grams; 0 if none
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? offerAddress, int? expirationDate, TonWalletMessage? message, TonWalletMessage? gaslessMessage, int? rentBudgetAmount, int? executionAllowanceAmount, int? forwardAmount, int? fineAmount}) → GiftOnChainPurchaseOfferTransaction -
Available on GiftOnChainPurchaseOfferTransaction, provided by the GiftOnChainPurchaseOfferTransactionExtensions 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
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → GiftOnChainPurchaseOfferTransaction?
Constants
- constructor → const String