credmark.cmf.types.ledger.BlockTable

class BlockTable(**kwargs)[source]

Bases: LedgerTable

Blocks ledger data table Column names

Methods

as_

describe

Attributes

BASE_FEE_PER_GAS

DIFFICULTY

EXTRA_DATA

GAS_LIMIT

GAS_USED

HASH

LOGS_BLOOM

MINER

NONCE

NUMBER

PARENT_HASH

RECEIPTS_ROOT

SHA3_UNCLES

SIZE

STATE_ROOT

TIMESTAMP

TOTAL_DIFFICULTY

TRANSACTIONS_ROOT

TRANSACTION_COUNT

TYPE_MAPPER

alias

bigint_cols

colnames

Return the set of column names in the table.

columns

Return the set of column names for the table.

table_key

BASE_FEE_PER_GAS = 'base_fee_per_gas'
DIFFICULTY = 'difficulty'
EXTRA_DATA = 'extra_data'
GAS_LIMIT = 'gas_limit'
GAS_USED = 'gas_used'
HASH = 'hash'
LOGS_BLOOM = 'logs_bloom'
MINER = 'miner'
NONCE = 'nonce'
NUMBER = 'number'
PARENT_HASH = 'parent_hash'
RECEIPTS_ROOT = 'receipts_root'
SHA3_UNCLES = 'sha3_uncles'
SIZE = 'size'
STATE_ROOT = 'state_root'
TIMESTAMP = 'timestamp'
TOTAL_DIFFICULTY = 'total_difficulty'
TRANSACTIONS_ROOT = 'transactions_root'
TRANSACTION_COUNT = 'transaction_count'
property colnames: List[str]

Return the set of column names in the table. They can be used in the query.

property columns: List[str]

Return the set of column names for the table. They will be used in the database.

For contract ledger tables, the set will include all contract-specific columns.