-
public final class TransactionOverviewHigh level transaction information, suitable for mapping to a display of transaction history.
Note that both sent and received transactions will have a positive net value. Consumers of this class must check isSentTransaction if displaying negative values is desired.
Pending transactions are identified by a null minedHeight. Pending transactions are considered expired if the last synced block exceeds the expiryHeight.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTransactionOverview.Companion
-
Field Summary
Fields Modifier and Type Field Description private final TransactionIdtxIdprivate final BlockHeightminedHeightprivate final BlockHeightexpiryHeightprivate final Longindexprivate final FirstClassByteArrayrawprivate final BooleanisSentTransactionprivate final ZatoshinetValueprivate final ZatoshitotalSpentprivate final ZatoshitotalReceivedprivate final ZatoshifeePaidprivate final BooleanisChangeprivate final IntegerreceivedNoteCountprivate final IntegersentNoteCountprivate final IntegermemoCountprivate final LongblockTimeEpochSecondsprivate final TransactionStatetransactionStateprivate final BooleanisShielding
-
Constructor Summary
Constructors Constructor Description TransactionOverview(TransactionId txId, BlockHeight minedHeight, BlockHeight expiryHeight, Long index, FirstClassByteArray raw, Boolean isSentTransaction, Zatoshi netValue, Zatoshi totalSpent, Zatoshi totalReceived, Zatoshi feePaid, Boolean isChange, Integer receivedNoteCount, Integer sentNoteCount, Integer memoCount, Long blockTimeEpochSeconds, TransactionState transactionState, Boolean isShielding)
-
Method Summary
Modifier and Type Method Description final TransactionIdgetTxId()final BlockHeightgetMinedHeight()final BlockHeightgetExpiryHeight()final LonggetIndex()final FirstClassByteArraygetRaw()final BooleangetIsSentTransaction()final ZatoshigetNetValue()final ZatoshigetTotalSpent()final ZatoshigetTotalReceived()final ZatoshigetFeePaid()final BooleangetIsChange()final IntegergetReceivedNoteCount()final IntegergetSentNoteCount()final IntegergetMemoCount()final LonggetBlockTimeEpochSeconds()final TransactionStategetTransactionState()final BooleangetIsShielding()StringtoString()-
-
Constructor Detail
-
TransactionOverview
TransactionOverview(TransactionId txId, BlockHeight minedHeight, BlockHeight expiryHeight, Long index, FirstClassByteArray raw, Boolean isSentTransaction, Zatoshi netValue, Zatoshi totalSpent, Zatoshi totalReceived, Zatoshi feePaid, Boolean isChange, Integer receivedNoteCount, Integer sentNoteCount, Integer memoCount, Long blockTimeEpochSeconds, TransactionState transactionState, Boolean isShielding)
-
-
Method Detail
-
getTxId
final TransactionId getTxId()
-
getMinedHeight
final BlockHeight getMinedHeight()
-
getExpiryHeight
final BlockHeight getExpiryHeight()
-
getRaw
final FirstClassByteArray getRaw()
-
getIsSentTransaction
final Boolean getIsSentTransaction()
-
getNetValue
final Zatoshi getNetValue()
-
getTotalSpent
final Zatoshi getTotalSpent()
-
getTotalReceived
final Zatoshi getTotalReceived()
-
getFeePaid
final Zatoshi getFeePaid()
-
getIsChange
final Boolean getIsChange()
-
getReceivedNoteCount
final Integer getReceivedNoteCount()
-
getSentNoteCount
final Integer getSentNoteCount()
-
getMemoCount
final Integer getMemoCount()
-
getBlockTimeEpochSeconds
final Long getBlockTimeEpochSeconds()
-
getTransactionState
final TransactionState getTransactionState()
-
getIsShielding
final Boolean getIsShielding()
-
-
-
-