Block

class blocksci.Block

Class representing a block in the blockchain

all

Returns a list of all of the objects in the range

base_size

The size of the non-segwit data in bytes

Type:int
bits

Difficulty threshold specified in block header

Type:int
coinbase_param

Data contained within the coinbase transaction of this block

Type:bytes
coinbase_tx

Return the coinbase transaction in this block

Type:blocksci.Tx
fee

The sum of the transaction fees contained in this block

Type:int
hash

Hash of this block

Type:blocksci.uint256
height

Height of the block in the blockchain

Type:int
input_count

Returns total number of inputs included in this block

Type:int
input_value

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

Type:int
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

next_block

Returns the block which follows this one in the chain

Type:blocksci.Block
nonce

Nonce specified in block header

Type:int
output_count

Returns total number of outputs included in this block

Type:int
output_value

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

Type:int
outputs

A range of all of the outputs in the block

Type:blocksci.OutputIterator
prev_block

Returns the block which comes before this one in the chain

Type:blocksci.Block
revenue

Total reward received by the miner of this block

Type:int
size_bytes

Returns the total size of the block in bytes

Type:int
time

Datetime object created from creation timestamp

Type:datetime.datetime
time_seen

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

Type:Optional[datetime.datetime]
timestamp

Creation timestamp specified in block header

Type:int
total_size

The size all block data in bytes

Type:int
tx_count

A range of all of the txes in the block

Type:int
txes

A range of all of the txes in the block

Type:blocksci.TxRange
version

Protocol version specified in block header

Type:int
virtual_size

The weight of the block divided by 4

Type:int
weight

Three times the base size plus the total size

Type:int