Optional Cluster Iterator

class blocksci.ClusterOptionalIterator
addresses

For each item: Get a iterable over all the addresses in the cluster

Type:blocksci.AddressIterator
all

Returns a list of all of the objects in the range

balance(height: int=-1) → blocksci.IntOptionalIterator

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

Return type:blocksci.IntOptionalIterator
count_of_type(address_type: blocksci.address_type) → blocksci.IntOptionalIterator

For each item: Return the number of addresses of the given type in the cluster

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]
in_txes_count() → blocksci.IntOptionalIterator

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

Return type:blocksci.IntOptionalIterator
index

For each item: The internal identifier of the cluster

Type:blocksci.IntOptionalIterator
out_txes_count() → blocksci.IntOptionalIterator

For each item: Return the number of transactions where this cluster was an output

Return type:blocksci.IntOptionalIterator
outs() → blocksci.OutputIterator

For each item: Returns a list of all outputs sent to this cluster

Return type:blocksci.OutputIterator
size() → blocksci.IntOptionalIterator

For each item: The number of addresses in the cluster

Return type:blocksci.IntOptionalIterator
tagged_addresses(tagged_addresses: Dict[Address, str]) → blocksci.TaggedAddressIterator

For each item: Given a dictionary of tags, return a range of TaggedAddress objects for any tagged addresses in the cluster

Return type:blocksci.TaggedAddressIterator
type_equiv_size

For each item: The number of addresses in the cluster not counting type equivalent addresses

Type:blocksci.IntOptionalIterator
with_default_value(default_value: blocksci.cluster.Cluster) → blocksci.ClusterIterator

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

Type:ClusterIterator
with_value

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

Type:ClusterIterator