Ethereum 101: How Transactions Are Included in a Block

·

This is the second installment in the Ethereum 101 series. Previously, we explored blocks and how they’re linked to form a blockchain, then examined real block data on a test network.

Note: Since the time of writing, Ethereum’s transaction fees have risen significantly due to increased demand. A new fee model (EIP-1559) has also been implemented. While the examples here may no longer reflect current fee mechanics, the core concepts remain valid.

How Transactions Enter a Block

Each Ethereum block contains metadata and a set of transactions. But how do transactions get included? Key questions include:

The Role of Transaction Fees

On Ethereum, every transaction requires a fee. Unlike traditional fees, you set your own amount—even $0. However, supply and demand dictate whether your transaction is processed.

Example Scenario

Imagine sending $20 to a friend with a $0.01 fee. Your transaction becomes pending and enters the transaction pool—a waiting area for unprocessed transactions. Higher fees generally mean faster inclusion. If thousands of transactions offer $0.05 fees, your $0.01 transaction may wait indefinitely.

👉 Discover how gas fees impact Ethereum transactions

How Wallets Simplify Fees

Most wallets (like MetaMask) analyze network conditions and offer fee tiers based on urgency:

At peak times, over 30,000 transactions may queue. Many with insufficient fees are eventually dropped.

Understanding Gas and Block Limits

Gas: Ethereum’s Computational Unit

Every transaction consumes gas, representing computational work. Simple transfers require 21,000 gas. You control the gas price (cost per unit), which determines total fees:

Block Gas Limits

Each block has a gas limit (~10 million gas currently). This restricts transactions per block:

10,000,000 gas ÷ 21,000 gas/transaction ≈ 476 transactions

Complex transactions (e.g., smart contracts) exceed 21,000 gas, reducing practical throughput. One massive transaction could fill an entire block—though this is rare due to high costs.

Key Takeaways

👉 Learn advanced Ethereum transaction strategies

FAQ

Why would my Ethereum transaction fail?

Low gas prices or sudden network congestion can cause transactions to remain pending or drop from the pool.

How can I estimate the right gas fee?

Use wallet-recommended fees or tools like Etherscan’s gas tracker. Adjust based on urgency.

What’s the difference between gas and gas price?

Can a single transaction fill a block?

Technically yes, but this is impractical due to prohibitive costs for most users.