Tx

class blocksci.Tx

Class representing a transaction in a block

base_size

The size of the non-segwit data in bytes

block

The block that this transaction was in

block_height

The height of the block that this transaction was in

block_time

The time that the block containing this transaction arrived

change_output

If the change address in this transaction can be determined via the fresh address criteria, return it. Otherwise return None.

fee

The fee paid by this transaction

fee_per_byte(self: blocksci.blocksci_interface.Tx, 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

hash

The 256-bit hash of this transaction

index

The internal index of this transaction

input_count

The number of inputs this transaction has

input_value

The sum of the value of all of the inputs

inputs

A list of the inputs of the transaction

ins

A list of the inputs of the transaction

is_coinbase

Return’s true if this transaction is a Coinbase transaction

locktime

The locktime of this transasction

op_return

If this transaction included a null data address, return its output. Otherwise return None

output_count

The number of outputs this transaction has

output_value

The sum of the value of all of the outputs

outputs

A list of the outputs of the transaction

outs

A list of the outputs of the transaction

size_bytes

The size of this transaction in bytes

total_size

The size all transaction data in bytes

virtual_size

The weight of the transaction divided by 4

weight

Three times the base size plus the total size