IMPCT Institute
← Course outline
Module 05·Part 1Foundations

How transactions actually work (and why gas exists)

By Deven Davis·6 min read

When you press 'send' in your wallet, you are submitting a request to a global computer that no one owns. Understanding what happens between that click and the final confirmation explains why fees fluctuate, why some transactions stall, and why some chains are dramatically cheaper than others.

By the end of this module

You will be able to:

  • Trace the full lifecycle of a crypto transaction — from wallet signing through mempool, block inclusion, and finality.
  • Explain why transaction fees (gas) exist and what determines how much you pay.
  • Identify why fees spike during congestion and how layer 2 networks change the math.
  • Recognize the practical implications: when to send, what to check before confirming, and what 'pending' actually means.
How transactions actually work (and why gas exists)

Module Overview

Every interaction you ever have with a blockchain is a transaction. Knowing what happens under the hood is the difference between confidently signing and reflexively clicking confirm.

  • A transaction is a signed message broadcast to a global network of nodes that compete to include it in the next block.
  • Gas fees pay validators for the computational work of processing your transaction — they exist because block space is scarce.
  • Fees float with demand: high network activity pushes fees up, quiet periods push them down.
  • Ethereum mainnet processes ~15 transactions per second at the base layer. Layer 2 networks process thousands, at fractions of the cost.
  • Confirmations matter: a transaction is technically final after one block, but practical security increases with each subsequent block (6+ for high-value Bitcoin transfers).

Key Terms

The vocabulary this module unlocks. Skim before you read.

Transaction
A signed instruction broadcast to a blockchain network, specifying what should happen (transfer, contract interaction, etc.).
Mempool
The public waiting area where unconfirmed transactions sit before being included in a block.
Validator
The participant that adds new blocks to the chain on proof-of-stake networks (Ethereum, Solana, etc.).
Gas
The fee paid to process a transaction. Determined by an auction across all the transactions in the mempool.
Base fee
(Ethereum post-EIP-1559) The portion of the gas fee that is burned, dynamically adjusted based on network demand.
EIP-1559
An Ethereum upgrade activated in August 2021 that introduced the base fee + tip structure and made gas fees more predictable.

What actually happens when you press send

When you press "send" in your wallet, something specific happens. Understanding it changes how you think about every fee you pay and every "pending" transaction you watch.

The transaction starts in your wallet. Your wallet uses your private key to sign a message that says, roughly, "transfer X amount from address A to address B, and here is the cryptographic proof I have the authority to do this." That signed message is the transaction.

Your wallet then broadcasts the transaction to the nearest node in the blockchain's peer-to-peer network. That node validates the signature, checks that you have sufficient balance, and propagates the transaction to other nodes. Within seconds, your transaction is sitting in the mempool — the global queue of pending transactions waiting to be included in the next block — across the entire network.

The mempool is not a single place. Every node maintains its own copy of pending transactions. They tend to converge quickly because nodes broadcast new transactions to their peers.

Now comes the bidding war.

Block space is the scarce resource

Each block can only contain so much transaction data. Bitcoin produces a roughly one-megabyte block every ten minutes. Ethereum produces a smaller block every twelve seconds. The exact size limits vary by chain, but the principle is universal: block space is finite, and demand for it is not.

When the network is quiet, every pending transaction fits comfortably in the next block, and fees can be very low. When the network is busy — a major NFT mint, a DeFi exploit, a market crash sending everyone to safety — there are more pending transactions than block space available. Validators must choose which transactions to include.

They choose based on fees. Higher-fee transactions get priority. Lower-fee transactions wait until the queue clears.

This is the fee market in action. It is not a centralized pricing decision. It is an auction running continuously across the network, with users bidding for block space and validators picking the most profitable bids.

When someone tells you "Ethereum gas fees are insane right now," what they are describing is the auction clearing at a high price because demand spiked. When fees drop to a few cents, the auction is clearing low because demand is quiet.

Why gas exists at all

Some new users wonder why fees exist at all. The chain is software — surely transactions could be free?

They could not, for a structural reason. If transactions were free, anyone could spam the network with infinite transactions, choking out legitimate users and bloating the chain with garbage. Fees serve as a denial-of-service prevention mechanism. The cost of submitting a transaction makes spam attacks economically unviable.

Fees also pay validators for the computational and storage work required to process and store each transaction. Without fees, no one would run the infrastructure that keeps the network alive.

The principle is simple: every chain charges some non-zero amount to use it, because the alternative is a chain that does not work.

Confirmations and finality

Once your transaction is included in a block, it is confirmed. The block is added to the blockchain. The state is updated. Your transaction has happened.

But there is a subtle wrinkle. Brand-new blocks are not yet maximally safe. There is a small probability that two miners produce competing valid blocks at nearly the same time, and the network briefly has two competing tips of the chain. Within one or two blocks, one of those tips loses and gets discarded; only one block survives. If your transaction was in the losing block, it gets re-broadcast to the mempool and re-included in a later block. The funds are not lost, but the timing changes.

This is why services that handle high-value transactions wait for multiple confirmations — additional blocks built on top of yours — before considering the transaction final. Bitcoin convention is six confirmations (about an hour) for high-value transfers. Ethereum's transition to proof-of-stake added stronger finality guarantees: after roughly fifteen minutes (two epochs), a transaction is irreversible by any normal mechanism.

For small everyday transactions, one confirmation is usually plenty. For wiring six figures to an exchange, wait for more. The risk decays exponentially with each block.

Why layer 2 changes the math

Most consumer-facing crypto activity in 2026 does not happen on Ethereum mainnet. It happens on layer 2 networks like Arbitrum, Optimism, and Base.

The reason is the economics we just walked through. Mainnet can process about fifteen transactions per second. That throughput is reserved for high-value settlement. Everyday DeFi swaps, NFT mints, and game transactions would price ordinary users out of mainnet during any meaningful congestion.

Layer 2s solve this by processing transactions off the base chain and batching them back to Ethereum periodically. The cost of the mainnet settlement is shared across thousands of layer 2 transactions, so per-transaction fees drop from dollars (or sometimes tens of dollars) to fractions of a cent.

The tradeoff is small. Layer 2s inherit Ethereum's security model with some additional trust assumptions about the sequencer (the operator that orders transactions on the layer 2 before batching). For everyday use, this tradeoff is overwhelmingly favorable. We cover layer 2s in detail in Module 8.

The practical takeaway

A few habits that follow from understanding how transactions actually work.

First, check the gas fee before approving any transaction. Your wallet shows the estimated fee. If it looks unreasonable, you can wait for quieter network conditions and resubmit later.

Second, if a transaction is "pending" for a long time, your fee was too low for current conditions. Most wallets let you bump the fee (a "speed up" or "replace" feature) to push it through.

Third, always read what the transaction is doing on your wallet's screen. Especially for token approvals — an attacker who tricks you into signing an unlimited approval for a token can drain that token from your wallet at any time later. The wallet's screen is the source of truth.

The next module looks at Ethereum specifically — what makes it different from Bitcoin, and why programmable money turned out to be a bigger idea than digital cash.

Key takeaways

Carry these with you

01

Block space is the scarce resource being auctioned in every transaction. Gas is the price.

02

Pending transactions are not lost — they are waiting in the mempool for a validator to include them. Bump the fee to expedite.

03

Most consumer-facing crypto activity in 2026 happens on layer 2s, where fees are pennies. Mainnet is for high-value settlement.

04

Always review the transaction details on your wallet's screen before approving. The screen is the source of truth.

What you should now be able to do

  1. 01.Trace the full lifecycle of a crypto transaction — from wallet signing through mempool, block inclusion, and finality.
  2. 02.Explain why transaction fees (gas) exist and what determines how much you pay.
  3. 03.Identify why fees spike during congestion and how layer 2 networks change the math.
  4. 04.Recognize the practical implications: when to send, what to check before confirming, and what 'pending' actually means.

Module quiz

Test what you learned

Pick an answer, see the result immediately, and check your reasoning against the explanation. The questions are tied directly to the outcomes promised at the top of this module.

  1. Question 1 of 6

    What is gas in crypto transactions?

  2. Question 2 of 6

    Why do gas fees spike during high network activity?

  3. Question 3 of 6

    What is the mempool?

  4. Question 4 of 6

    How many transactions per second can Ethereum mainnet handle at its base layer?

  5. Question 5 of 6

    What does it mean when a transaction is 'pending'?

  6. Question 6 of 6

    Why are layer 2 transactions so much cheaper than Ethereum mainnet?

Read deeper

Curated readings for Module 5

Up next

Module 6 · Beginner · 7 min

Ethereum and the idea of programmable money

Back to Module 4 · Wallets, keys, and your money's actual location

Preview reader

You are reading a private preview of IMPCT Institute. If something landed, didn't land, or felt confusing on this lesson, tell us. Short notes are useful. Long notes are useful. No notes are also fine.

Send feedback on Module 5Opens your email with a short template prefilled.