Address Range

class blocksci.GenericAddressRange

Bases: blocksci.GenericRange

Class representing any Address range

property address_num

For each item: The internal identifier of the address

Type

numpy.ndarray[int]

balance(height: int = - 1)numpy.ndarray[int]

For each item: Calculates the balance held by this address at the height (Defaults to the full chain)

equiv(equiv_script: bool = True) → blocksci.EquivAddressRange

For each item: Returns a list of all addresses equivalent to this address

property first_tx

For each item: Get the first transaction that was sent to a type equivalent address

Type

blocksci.TxRange

property full_type

For each item: The full type of the address

Type

list

property has_been_spent

For each item: Check if a type equivalent address has ever been spent

Type

numpy.ndarray[bool]

property in_txes

For each item: Returns an iterator over all transactions where this address appeared an input

Type

blocksci.TxIterator

in_txes_count()numpy.ndarray[int]

For each item: Return the number of transactions where this address appeared in an input

property input_txes

For each item: Returns an iterator over all transactions where this address appeared an input

Type

blocksci.TxIterator

input_txes_count()numpy.ndarray[int]

For each item: Return the number of transactions where this address was an input

property inputs

For each item: Returns an iterator over all inputs spent from this address

Type

blocksci.InputIterator

property ins

For each item: Returns an iterator over all inputs spent from this address

Type

blocksci.InputIterator

property out_txes

For each item: Returns an iterator over all transactions where this address appeared in an output

Type

blocksci.TxIterator

out_txes_count()numpy.ndarray[int]

For each item: Return the number of transactions where this address appeared in an output

property output_txes

For each item: Returns an iterator over all transactions where this address appeared in an output

Type

blocksci.TxIterator

output_txes_count()numpy.ndarray[int]

For each item: Return the number of transactions where this address appeared in an output

property outputs

For each item: Returns a iterator over all outputs sent to this address

Type

blocksci.OutputIterator

property outs

For each item: Returns a iterator over all outputs sent to this address

Type

blocksci.OutputIterator

property raw_type

For each item: The type of address

Type

numpy.ndarray[int]

property revealed_tx

For each item: The transaction where a type equivalent address was first revealed

Type

blocksci.TxIterator

property txes

For each item: Returns an iterator over all transactions involving this address

Type

blocksci.TxIterator

property type

For each item: The type of address

Type

list

class blocksci.AddressRange

Bases: blocksci.AddressSequence, blocksci.GenericAddressRange

with_type(arg0: blocksci::AddressType::Enum) → Union[blocksci.NonstandardAddressIterator, blocksci.PubkeyAddressIterator, blocksci.PubkeyHashAddressIterator, blocksci.MultisigPubkeyIterator, blocksci.ScriptHashAddressIterator, blocksci.MultisigAddressIterator, blocksci.OpReturnIterator, blocksci.WitnessPubkeyHashAddressIterator, blocksci.WitnessScriptHashAddressIterator, blocksci.WitnessUnknownAddressIterator]

For each item: If the address has the given type return it, otherwise return None