Tx

class blocksci.Tx

Class representing a transaction in a block

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

The ratio of fee paid to size in bytes of this transaction

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 script, 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