Tx¶
-
class
blocksci.
Tx
¶ Class representing a transaction in a block
-
block
¶ The block that this transaction was in
Type: blocksci.Block
-
block_time
¶ The time that the block containing this transaction arrived
Type: datetime.datetime
-
change_output
¶ If the change address in this transaction can be determined via the fresh address criteria, return it. Otherwise return None.
Type: Optional[blocksci.Output]
-
fee_per_byte
(size_measure: str='virtual') → int¶ The ratio of fee paid to size of this transaction. By default this uses veritual size, but passing total, base, weight, or virtual let’s you choose what measure of size you want
Return type: int
-
hash
¶ The 256-bit hash of this transaction
Type: blocksci.uint256
-
includes_output_of_type
(address_type: blocksci.address_type) → bool¶ Check whether the given transaction includes an output of the given address type
Return type: bool
-
inputs
¶ A list of the inputs of the transaction
Type: blocksci.InputRange
-
ins
¶ A list of the inputs of the transaction
Type: blocksci.InputRange
-
observed_in_mempool
¶ Returns whether this transaction was seen in the mempool by the recorder
Type: bool
-
op_return
¶ If this transaction included a null data address, return its output. Otherwise return None
Type: Optional[blocksci.Output]
-
outputs
¶ A list of the outputs of the transaction
Type: blocksci.OutputRange
-
outs
¶ A list of the outputs of the transaction
Type: blocksci.OutputRange
-
time_seen
¶ If recorded by the mempool recorder, the time that this transaction was first seen by your node
Type: Optional[datetime.datetime]
-