TransactionRecord class

A normalised record representing a single on-chain transaction as seen from a specific wallet address.

Constructors

TransactionRecord({required String signature, required DateTime timestamp, required BigInt amount, required TransactionType type, required String counterparty, String symbol = 'SKR', int decimals = 6, String? mint})
TransactionRecord.fromJson(Map<String, dynamic> json)
Deserialises a TransactionRecord from a JSON map produced by toJson.
factory

Properties

amount BigInt
Transfer amount in token base units (e.g. lamports or token smallest unit).
final
counterparty String
Address of the other party in the transfer.
final
decimals int
Number of decimal places for the token (defaults to 6).
final
hashCode int
The hash code for this object.
no setterinherited
mint String?
SPL mint address associated with this transfer, if applicable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature String
Base58-encoded transaction signature.
final
symbol String
Human-readable token symbol (defaults to 'SKR').
final
timestamp DateTime
Block time of the transaction.
final
type TransactionType
Whether this transaction is a send, receive, or unknown from the wallet's perspective.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this record to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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