+// Tx contains raw transaction and the sequence of tx in block
+type Tx struct {
+ rawTx *types.Tx
+ blockHeight uint64
+ txIndex uint64
+}
+
+// NewTx create a new Tx instance
+func NewTx(tx *types.Tx, blockHeight, txIndex uint64) *Tx {
+ return &Tx{rawTx: tx, blockHeight: blockHeight, txIndex: txIndex}
+}
+