Optional Block Range¶
-
class
blocksci.
BlockOptionalRange
¶ -
all
¶ Returns a list of all of the objects in the range
-
base_size
¶ For each item: The size of the non-segwit data in bytes
Type: blocksci.IntOptionalRange
-
bits
¶ For each item: Difficulty threshold specified in block header
Type: blocksci.IntOptionalRange
-
coinbase_param
¶ For each item: Data contained within the coinbase transaction of this block
Type: blocksci.BytesOptionalRange
-
coinbase_tx
¶ For each item: Return the coinbase transaction in this block
Type: blocksci.TxOptionalRange
-
fee
¶ For each item: The sum of the transaction fees contained in this block
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]
-
hash
¶ For each item: Hash of this block
Type: blocksci.UInt256OptionalRange
-
height
¶ For each item: Height of the block in the blockchain
Type: blocksci.IntOptionalRange
-
input_count
¶ For each item: Returns total number of inputs included in this block
Type: blocksci.IntOptionalRange
-
input_value
¶ For each item: Returns the sum of the value of all of the inputs included in this block
Type: blocksci.IntOptionalRange
-
inputs
¶ For each item: A range of all of the inputs in the block
Type: blocksci.InputIterator
-
next_block
¶ For each item: Returns the block which follows this one in the chain
Type: blocksci.BlockOptionalRange
-
nonce
¶ For each item: Nonce specified in block header
Type: blocksci.IntOptionalRange
-
output_count
¶ For each item: Returns total number of outputs included in this block
Type: blocksci.IntOptionalRange
-
output_value
¶ For each item: Returns the sum of the value of all of the outputs included in this block
Type: blocksci.IntOptionalRange
-
outputs
¶ For each item: A range of all of the outputs in the block
Type: blocksci.OutputIterator
-
prev_block
¶ For each item: Returns the block which comes before this one in the chain
Type: blocksci.BlockOptionalRange
-
revenue
¶ For each item: Total reward received by the miner of this block
Type: blocksci.IntOptionalRange
-
size_bytes
¶ For each item: Returns the total size of the block in bytes
Type: blocksci.IntOptionalRange
-
time
¶ For each item: Datetime object created from creation timestamp
Type: blocksci.DateOptionalRange
-
time_seen
¶ For each item: If recorded by the mempool recorder, the time that this block was first seen by your node
Type: blocksci.DateOptionalRange
-
timestamp
¶ For each item: Creation timestamp specified in block header
Type: blocksci.IntOptionalRange
-
total_size
¶ For each item: The size all block data in bytes
Type: blocksci.IntOptionalRange
-
tx_count
¶ For each item: A range of all of the txes in the block
Type: blocksci.IntOptionalRange
-
txes
¶ For each item: A range of all of the txes in the block
Type: blocksci.TxIterator
-
version
¶ For each item: Protocol version specified in block header
Type: blocksci.IntOptionalRange
-
virtual_size
¶ For each item: The weight of the block divided by 4
Type: blocksci.IntOptionalRange
-
weight
¶ For each item: Three times the base size plus the total size
Type: blocksci.IntOptionalRange
-
with_default_value
(default_value: blocksci.Block) → blocksci.BlockRange¶ Replace all none values in the sequence with the provided default value and return the resulting sequence
Type: BlockRange
-
with_value
¶ Returns a sequence containing only non-None items in the sequence
Type: BlockRange
-