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) -> list
__getstate__(self: blocksci.blocksci_interface.Block) → tuple
__init__(self: blocksci.blocksci_interface.Block, arg0: int, arg1: int, arg2: int, arg3: blocksci.blocksci_interface.uint256, arg4: int, arg5: int, arg6: int, arg7: int, arg8: 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 transcation in this block

fees

Return a list of the fees in this block

fees_per_byte

Return a list of fees per byte in this block

header_hash

Hash of this block

height

Height of the block in the blockchain

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

nonce

Nonce specified in block header

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

Returns a list of all of the outputs that were spent by the given height

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_age(self: blocksci.blocksci_interface.Block, arg0: int) → int

Returns the sum of all the outputs in the block that were spent within the given number of blocks

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

unspent_outputs

Returns a list of all of the outputs in this block that are still unspent

value_in

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

value_out

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

value_out_after_height(self: blocksci.blocksci_interface.Block, arg0: int) → int

Returns the sum of all of the outputs that were not spent until after the given height

version

Protocol version specified in block header