TonWalletTransaction class final
Represents a transaction with the TON wallet of the current user
Constructors
- TonWalletTransaction({required String id, required String peerAddress, required int peerUserId, required String peerDomain, required int date, required int feeAmount, required TonWalletTransactionState state, required TonWalletTransactionType type, dynamic extra, int? clientId})
-
Represents a transaction with the TON wallet of the current user
const
-
TonWalletTransaction.fromJson(Map<
String, dynamic> json) -
Parses a TonWalletTransaction from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- date → int
-
Point in time (Unix timestamp) when the transaction was completed
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- feeAmount → int
-
The fee amount paid for the transaction in TON Grams, in the smallest units of the cryptocurrency
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier of the transaction
final
- peerAddress → String
-
Address in the TON blockchain of the transaction peer; may be empty if the transaction isn't a wallet transfer
final
- peerDomain → String
-
Identifier of the domain assigned to the peer address; may be empty if none
final
- peerUserId → int
-
Identifier of the other user who participated in the transaction; 0 if unknown
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → TonWalletTransactionState
-
State of the transaction
final
- type → TonWalletTransactionType
-
Type of the transaction
final
Methods
-
copyWith(
{String? id, String? peerAddress, int? peerUserId, String? peerDomain, int? date, int? feeAmount, TonWalletTransactionState? state, TonWalletTransactionType? type, dynamic extra, int? clientId}) → TonWalletTransaction -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.