ethereum.muir_glacier.blocks
A Block
is a single link in the chain that is Ethereum. Each Block
contains
a Header
and zero or more transactions. Each Header
contains associated
metadata like the block number, parent block hash, and how much gas was
consumed by its transactions.
Together, these blocks form a cryptographically secure journal recording the history of all state transitions that have happened since the genesis of the chain.
Header
Header portion of a block on the chain.
23 | @slotted_freezable |
---|
24 | @dataclass |
---|
class Header:
parent_hash
30 | parent_hash: Hash32 |
---|
ommers_hash
31 | ommers_hash: Hash32 |
---|
coinbase
32 | coinbase: Address |
---|
state_root
33 | state_root: Root |
---|
transactions_root
34 | transactions_root: Root |
---|
receipt_root
35 | receipt_root: Root |
---|
bloom
36 | bloom: Bloom |
---|
difficulty
37 | difficulty: Uint |
---|
number
38 | number: Uint |
---|
gas_limit
39 | gas_limit: Uint |
---|
gas_used
40 | gas_used: Uint |
---|
timestamp
41 | timestamp: U256 |
---|
extra_data
42 | extra_data: Bytes |
---|
mix_digest
43 | mix_digest: Bytes32 |
---|
nonce
44 | nonce: Bytes8 |
---|
Block
A complete block.
47 | @slotted_freezable |
---|
48 | @dataclass |
---|
class Block:
header
54 | header: Header |
---|
transactions
55 | transactions: Tuple[Transaction, ...] |
---|
ommers
56 | ommers: Tuple[Header, ...] |
---|
Log
Data record produced during the execution of a transaction.
59 | @slotted_freezable |
---|
60 | @dataclass |
---|
class Log:
address
66 | address: Address |
---|
topics
67 | topics: Tuple[Hash32, ...] |
---|
data
68 | data: bytes |
---|
Receipt
Result of a transaction.
71 | @slotted_freezable |
---|
72 | @dataclass |
---|
class Receipt:
succeeded
78 | succeeded: bool |
---|
cumulative_gas_used
79 | cumulative_gas_used: Uint |
---|
bloom
80 | bloom: Bloom |
---|
logs
81 | logs: Tuple[Log, ...] |
---|