Optional Cluster Range¶
-
class
blocksci.
ClusterOptionalRange
¶ -
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.IntOptionalRange¶ For each item: Calculates the balance held by this cluster at the height (Defaults to the full chain)
Return type: blocksci.IntOptionalRange
-
count_of_type
(address_type: blocksci.address_type) → blocksci.IntOptionalRange¶ For each item: Return the number of addresses of the given type in the cluster
Return type: blocksci.IntOptionalRange
-
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.IntOptionalRange¶ For each item: Return the number of transactions where this cluster was an input
Return type: blocksci.IntOptionalRange
-
index
¶ For each item: The internal identifier of the cluster
Type: blocksci.IntOptionalRange
-
out_txes_count
() → blocksci.IntOptionalRange¶ For each item: Return the number of transactions where this cluster was an output
Return type: blocksci.IntOptionalRange
-
outs
() → blocksci.OutputIterator¶ For each item: Returns a list of all outputs sent to this cluster
Return type: blocksci.OutputIterator
-
size
() → blocksci.IntOptionalRange¶ For each item: The number of addresses in the cluster
Return type: blocksci.IntOptionalRange
-
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.IntOptionalRange
-
with_default_value
(default_value: blocksci.cluster.Cluster) → blocksci.ClusterRange¶ Replace all none values in the sequence with the provided default value and return the resulting sequence
Type: ClusterRange
-
with_value
¶ Returns a sequence containing only non-None items in the sequence
Type: ClusterRange
-