TransactionResult class

Represents a transaction result.

Constructors

TransactionResult({required String type, String? invoice, String? description, String? descriptionHash, String? preimage, required String paymentHash, required int amount, required int feesPaid, required int createdAt, int? expiresAt, int? settledAt, Map<String, dynamic>? metadata})
const
TransactionResult.deserialize(Map<String, dynamic> input)
factory

Properties

amount int
The amount of the transaction (in MSATs).
final
amountSat → dynamic
The amount of the invoice (in SATS)
no setter
createdAt int
The timestamp when the transaction was created.
final
description String?
The description of the transaction.
final
descriptionHash String?
The hash of the transaction description.
final
expiresAt int?
The timestamp when the transaction expires.
final
feesPaid int
The fees paid for the transaction (in MSATs).
final
hashCode int
The hash code for this object.
no setterinherited
invoice String?
The bolt11 invoice.
final
isIncoming → dynamic
no setter
metadata Map<String, dynamic>?
Additional metadata (optional).
final
paymentHash String
The payment hash of the transaction.
final
preimage String?
The preimage of the transaction.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settledAt int?
The timestamp when the transaction was settled (optional).
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type String
The type of the transaction "incoming" or "outgoing".
final
zapperPubKey String?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromNotification(NwcNotification notification) → dynamic
creates a transaction result from a NwcNotification