UpgradedGiftDepositInfo class

Contains information needed to deposit an upgraded gift from the TON wallet of the current user to a Telegram account. The gift must be transferred by an internal message from the wallet to nft_address with gram_amount attached and with payload as the message body. Use sendTonWalletTransaction to send the message

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

UpgradedGiftDepositInfo({required String nftAddress, required String payload, required int gramAmount})
const

Properties

gramAmount → int
gramAmount The amount that must be attached to the message to cover fees, in the smallest units of TON Grams; the excess amount will be returned to the wallet
final
hashCode → int
The hash code for this object.
no setteroverride
nftAddress → String
nftAddress Address on the TON blockchain to which the message must be sent
final
payload → String
payload Body of the NFT transfer message
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? nftAddress, String? payload, int? gramAmount}) → UpgradedGiftDepositInfo

Available on UpgradedGiftDepositInfo, provided by the UpgradedGiftDepositInfoExtensions 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) → UpgradedGiftDepositInfo?

Constants

constructor → const String