Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Direction ¶
type Direction uint8
Direction is an enum which tells us whether a transaction is incoming or outgoing.
type TxRecord ¶
type TxRecord struct {
Direction
Timestamp int64
Height uint64
transactions.TxType
Amount uint64
UnlockHeight uint64
Recipient string
}
TxRecord encapsulates the data stored on the DB related to a transaction such as block heigth, direction, amount, etc
func New ¶
func New(tx transactions.Transaction, height uint64, direction Direction, privView *key.PrivateView) *TxRecord
New creates a TxRecord
Click to show internal directories.
Click to hide internal directories.