GiftOnChainSaleTransactionFragment class

The transaction for a gift sold on-chain on Fragment. The transaction consists of one message, which must be sent to nft_address with gram_amount attached and with payload as the message body. Use sendTonWalletTransaction to send the transaction

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

GiftOnChainSaleTransactionFragment({required String nftAddress, required String payload, required int gramAmount, required bool isGaslessTransferAvailable})
const

Properties

gramAmount → int
gramAmount The amount that must be sent with the transaction, in the smallest units of TON Grams
final
hashCode → int
The hash code for this object.
no setteroverride
isGaslessTransferAvailable → bool
isGaslessTransferAvailable True, if the transaction can be sent as a gasless transfer
final
nftAddress → String
nftAddress Address on the TON blockchain to which the transaction must be sent
final
payload → String
payload Body of the transaction message; may be empty
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? nftAddress, String? payload, int? gramAmount, bool? isGaslessTransferAvailable}) → GiftOnChainSaleTransactionFragment

Available on GiftOnChainSaleTransactionFragment, provided by the GiftOnChainSaleTransactionFragmentExtensions extension

getConstructor() → String
override
map<TResult extends Object?>({required TResult fragment(GiftOnChainSaleTransactionFragment value), required TResult fixedPrice(GiftOnChainSaleTransactionFixedPrice value)}) → TResult

Available on GiftOnChainSaleTransaction, provided by the GiftOnChainSaleTransactionExtensions extension

maybeMap<TResult extends Object?>({TResult fragment(GiftOnChainSaleTransactionFragment value)?, TResult fixedPrice(GiftOnChainSaleTransactionFixedPrice value)?, required TResult orElse()}) → TResult

Available on GiftOnChainSaleTransaction, provided by the GiftOnChainSaleTransactionExtensions extension

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