Skip to main content

Overview

BlockBody contains the executable content of a block: transactions, uncle/ommer blocks, and (post-Shanghai) withdrawals.

Type Definition

Fields:
  • transactions - Ordered list of transactions in the block
  • ommers - Uncle/ommer block headers (deprecated post-merge)
  • withdrawals - Beacon chain withdrawals (post-Shanghai)

Creating BlockBody

from

Universal constructor from components.

Transaction Types

BlockBody supports all transaction types:

Ommers (Uncle Blocks)

Ommers are deprecated post-merge. Always use empty array for new blocks.

Withdrawals (Post-Shanghai)

Withdrawals represent ETH being withdrawn from the beacon chain to execution layer.
Withdrawal amounts are in Gwei (10^9 Wei), not Wei!

See Also