Block

class blocksci.Block

Class representing a block in the blockchain

__getitem__(*args, **kwargs)

Overloaded function.

  1. __getitem__(self: blocksci.blocksci_interface.Block, arg0: int) -> blocksci::Transaction
  2. __getitem__(self: blocksci.blocksci_interface.Block, arg0: slice) -> ranges::v3::any_view<blocksci::Transaction, (ranges::v3::category)1, void>
__getstate__(self: blocksci.blocksci_interface.Block) → tuple
__init__(self: blocksci.blocksci_interface.Block, arg0: int) → None
__iter__(self: blocksci.blocksci_interface.Block) → iterator
__len__(self: blocksci.blocksci_interface.Block) → int
__module__ = 'blocksci.blocksci_interface'
__repr__(self: blocksci.blocksci_interface.Block) → str
__setstate__(self: blocksci.blocksci_interface.Block, arg0: tuple) → None
bits

Difficulty threshold specified in block header

coinbase_param

Data contained within the coinbase transaction of this block

coinbase_tx

Return the coinbase transaction in this block

hash

Hash of this block

height

Height of the block in the blockchain

input_count

Returns total number of inputs included in this block

input_value

Returns the sum of the value of all of the inputs included in this block

inputs

Returns a range of all of the inputs in the block.

Returns:AnyInputRange
miner(block)
net_address_type_value(self: blocksci.blocksci_interface.Block) → Dict[blocksci.blocksci_interface.address_type, int]

Returns a set of the net change in the utxo pool after this block split up by address type

net_full_type_value(self: blocksci.blocksci_interface.Block) → Dict[str, int]

Returns a set of the net change in the utxo pool after this block split up by full type

next_block

Returns the block which follows this one in the chain

nonce

Nonce specified in block header

output_count

Returns total number of outputs included in this block

output_value

Returns the sum of the value of all of the outputs included in this block

outputs

Returns a range of all of the outputs in the block.

Returns:AnyOutputRange
prev_block

Returns the block which comes before this one in the chain

size_bytes

Returns the total size of the block in bytes

time

Datetime object created from creation timestamp

timestamp

Creation timestamp specified in block header

total_spent_of_ages(self: blocksci.blocksci_interface.Block, arg0: int) → List[int]

Returns a list of sum of all the outputs in the block that were spent within a certain of blocks, up to the max age given

txes

Returns a range of all of the txes in the block.

Returns:AnyTxRange
version

Protocol version specified in block header