Tx¶
-
class
blocksci.Tx¶ Class representing a transaction in a block
-
property
base_size¶ The size of the non-segwit data in bytes
-
property
block¶ The block that this transaction was in
-
property
block_height¶ The height of the block that this transaction was in
-
property
block_time¶ The time that the block containing this transaction arrived
-
property
fee¶ The fee paid by this transaction
-
fee_per_byte(size_measure: str = 'virtual') → int¶ The (rounded) ratio of fee paid to size of this transaction (in byte). By default this uses virtual size, but passing total, base, weight, or virtual let’s you choose a different size measure
-
fee_per_kbyte(size_measure: str = 'virtual') → int¶ The (rounded) ratio of fee paid to size of this transaction (in kbyte). By default this uses virtual size, but passing total, base, weight, or virtual let’s you choose a different size measure
-
property
hash¶ The 256-bit hash of this transaction
-
includes_output_of_type(address_type: blocksci.address_type) → bool¶ Check whether the given transaction includes an output of the given address type
-
property
index¶ The internal index of this transaction
-
property
input_count¶ The number of inputs this transaction has
-
property
input_value¶ The sum of the value of all of the inputs
-
property
inputs¶ A list of the inputs of the transaction
- Type
-
property
ins¶ A list of the inputs of the transaction
- Type
-
property
is_coinbase¶ Return’s true if this transaction is a Coinbase transaction
-
property
locktime¶ The locktime of this transasction
-
property
observed_in_mempool¶ Returns whether this transaction was seen in the mempool by the recorder
-
property
op_return¶ If this transaction included a null data address, return its output. Otherwise return None
-
property
output_count¶ The number of outputs this transaction has
-
property
output_value¶ The sum of the value of all of the outputs
-
property
outputs¶ A list of the outputs of the transaction
- Type
-
property
outs¶ A list of the outputs of the transaction
- Type
-
property
size_bytes¶ The size of this transaction in bytes
-
property
time_seen¶ If recorded by the mempool recorder, the time that this transaction was first seen by your node
-
property
timestamp_seen¶ If recorded by the mempool recorder, the time that this transaction was first seen by your node
-
property
total_size¶ The size all transaction data in bytes
-
property
version¶ The version of this transaction
-
property
virtual_size¶ The weight of the transaction divided by 4
-
property
weight¶ Three times the base size plus the total size
-
property