cfxdb.xbr.block

Classes

Block

Blockchain blocks. This table stores information about the series of Ethereum blocks that make up the blockchain.

Blocks

Blockchain blocks processed.

_BlockGen

Expand methods on the class code generated by flatc.

Module Contents

class Block(from_fbs=None)[source]

Bases: object

Blockchain blocks. This table stores information about the series of Ethereum blocks that make up the blockchain.

__str__()[source]
_block_hash = None[source]
_block_number = None[source]
_cnt_events = None[source]
_from_fbs = None[source]
_timestamp = None[source]
property block_hash: bytes[source]

Block hash.

property block_number: int[source]

block number.

Type:

Primary key

build(builder)[source]
static cast(buf)[source]
property cnt_events: int[source]

Number of XBR blockchain log events found in the block.

marshal() dict[source]
property timestamp: numpy.datetime64[source]

Timestamp when record was inserted (Unix epoch time in ns).

class Blocks(slot=None, compress=None, build=None, cast=None)[source]

Bases: zlmdb.MapBytes32FlatBuffers

Blockchain blocks processed.

Map zlmdb.MapBytes32FlatBuffers from block_number to cfxdb.xbr.Block

class _BlockGen[source]

Bases: cfxdb.gen.xbr.Block.Block

Expand methods on the class code generated by flatc.

FIXME: come up with a PR for fla_CatalogGentc to generated this stuff automatically.

BlockHashAsBytes()[source]
BlockNumberAsBytes()[source]
classmethod GetRootAsBlock(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.