Block

class blocksci.Block

Class representing a block in the blockchain

property base_size

The size of the non-segwit data in bytes

property bits

Difficulty threshold specified in block header

property coinbase_param

Data contained within the coinbase transaction of this block

property coinbase_tx

Return the coinbase transaction in this block

property fee

The sum of the transaction fees contained in this block

property hash

Hash of this block

property height

Height of the block in the blockchain

property input_count

Returns total number of inputs included in this block

property input_value

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

property inputs

A range of all of the inputs in the block

Type

blocksci.InputIterator

miner()str

Get the miner of the block based on the text in the coinbase transaction

net_address_type_value() → Dict[blocksci.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() → Dict[str, int]

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

property next_block

Returns the block which follows this one in the chain

property nonce

Nonce specified in block header

property output_count

Returns total number of outputs included in this block

property output_value

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

property outputs

A range of all of the outputs in the block

Type

blocksci.OutputIterator

property prev_block

Returns the block which comes before this one in the chain

property revenue

Total reward received by the miner of this block

property size_bytes

Returns the total size of the block in bytes

property time

Datetime object created from creation timestamp

property time_seen

If recorded by the mempool recorder, the time that this block was first seen by your node

property timestamp

Creation timestamp specified in block header

property timestamp_seen

If recorded by the mempool recorder, the timestamp that this block was first seen by your node

to_list()list

Returns a list of all of the objects in the block

property total_size

The size all block data in bytes

property tx_count

A range of all of the txes in the block

property txes

A range of all of the txes in the block

Type

blocksci.TxRange

property version

Protocol version specified in block header

property virtual_size

The weight of the block divided by 4

property weight

Three times the base size plus the total size