Optional Tx Iterator

class blocksci.TxOptionalIterator
all

Returns a list of all of the objects in the range

base_size

For each item: The size of the non-segwit data in bytes

Type:blocksci.IntOptionalIterator
block

For each item: The block that this transaction was in

Type:blocksci.BlockOptionalIterator
block_height

For each item: The height of the block that this transaction was in

Type:blocksci.IntOptionalIterator
block_time

For each item: The time that the block containing this transaction arrived

Type:blocksci.DateOptionalIterator
change_output

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

Type:blocksci.OutputOptionalIterator
fee

For each item: The fee paid by this transaction

Type:blocksci.IntOptionalIterator
fee_per_byte(size_measure: str='virtual') → blocksci.IntOptionalIterator

For each item: 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:blocksci.IntOptionalIterator
has_value

Return a array of bools denoting whether a item in the sequence has a value or is none

Type:numpy.ndarray[bool]
hash

For each item: The 256-bit hash of this transaction

Type:blocksci.UInt256OptionalIterator
includes_output_of_type(address_type: blocksci.address_type) → blocksci.BoolOptionalIterator

For each item: Check whether the given transaction includes an output of the given address type

Return type:blocksci.BoolOptionalIterator
index

For each item: The internal index of this transaction

Type:blocksci.IntOptionalIterator
input_count

For each item: The number of inputs this transaction has

Type:blocksci.IntOptionalIterator
input_value

For each item: The sum of the value of all of the inputs

Type:blocksci.IntOptionalIterator
inputs

For each item: A list of the inputs of the transaction

Type:blocksci.InputIterator
ins

For each item: A list of the inputs of the transaction

Type:blocksci.InputIterator
is_coinbase

For each item: Return’s true if this transaction is a Coinbase transaction

Type:blocksci.BoolOptionalIterator
locktime

For each item: The locktime of this transasction

Type:blocksci.IntOptionalIterator
observed_in_mempool

For each item: Returns whether this transaction was seen in the mempool by the recorder

Type:blocksci.BoolOptionalIterator
op_return

For each item: If this transaction included a null data address, return its output. Otherwise return None

Type:blocksci.OutputOptionalIterator
output_count

For each item: The number of outputs this transaction has

Type:blocksci.IntOptionalIterator
output_value

For each item: The sum of the value of all of the outputs

Type:blocksci.IntOptionalIterator
outputs

For each item: A list of the outputs of the transaction

Type:blocksci.OutputIterator
outs

For each item: A list of the outputs of the transaction

Type:blocksci.OutputIterator
size_bytes

For each item: The size of this transaction in bytes

Type:blocksci.IntOptionalIterator
time_seen

For each item: If recorded by the mempool recorder, the time that this transaction was first seen by your node

Type:blocksci.DateOptionalIterator
total_size

For each item: The size all transaction data in bytes

Type:blocksci.IntOptionalIterator
virtual_size

For each item: The weight of the transaction divided by 4

Type:blocksci.IntOptionalIterator
weight

For each item: Three times the base size plus the total size

Type:blocksci.IntOptionalIterator
with_default_value(default_value: blocksci.Tx) → blocksci.TxIterator

Replace all none values in the sequence with the provided default value and return the resulting sequence

Type:TxIterator
with_value

Returns a sequence containing only non-None items in the sequence

Type:TxIterator