Mempool
Temporary storage for pending transactions awaiting inclusion in a block
What is the Mempool?
The mempool, short for “memory pool,” serves as a waiting room for transactions that have been broadcast to the network but have not yet been included in a block. When you submit a transaction to a blockchain, it doesn’t immediately become part of the permanent ledger. Instead, it enters this liminal space where it waits alongside thousands of other pending transactions, each competing for the attention of block producers who will decide which transactions to include next.
Every node in a blockchain network maintains its own version of the mempool, creating a distributed buffer of unconfirmed transactions. This design reflects the decentralized nature of blockchain networks - there is no single authoritative mempool but rather a collection of overlapping transaction pools across the network. Validators and miners draw from their local mempools when constructing new blocks, selecting transactions based on various criteria including fee levels and transaction validity.
The mempool represents a critical yet often invisible layer of blockchain infrastructure. For users, it manifests as the anxious waiting period between clicking “submit” and seeing a transaction confirmed. For developers and traders, understanding mempool dynamics is essential for predicting transaction timing, optimizing gas costs, and navigating the competitive landscape of block space.
How the Mempool Works
When a transaction is submitted to the network, it first undergoes validation at the receiving node. The node checks that the transaction is properly formatted, that the sender has sufficient balance to cover the transfer amount plus fees, and that the signature is valid. Only after passing these checks does the transaction enter the node’s mempool and begin its journey toward confirmation.
Transaction propagation follows a gossip protocol, where nodes share new transactions with their peers in a cascading wave across the network. A transaction submitted in Tokyo might reach a validator in New York within seconds, hopping from node to node until it has spread throughout the global network. This propagation isn’t instantaneous, and the slight delays between nodes create opportunities and challenges that sophisticated actors have learned to exploit.
Ordering within the mempool typically follows economic incentives. Transactions offering higher fees rise to the top of the queue, as block producers naturally prefer to maximize their revenue by including the most lucrative transactions. This creates a dynamic priority system where transactions compete for limited block space through their willingness to pay. The mempool constantly churns as new transactions arrive, old ones are confirmed, and others are dropped when they become stale or are replaced by higher-fee alternatives.
Mempool Dynamics
During periods of high network activity, the mempool swells with pending transactions, creating intense competition for block space. Users find themselves in an implicit auction, bidding against each other through gas prices to secure timely inclusion. This congestion drives fees upward in a self-reinforcing cycle. As some users raise their bids, others must follow suit or accept longer wait times. The mempool thus functions as a real-time market for blockchain access.
Priority fees and fee markets have evolved as mechanisms to manage this congestion. Ethereum’s EIP-1559 introduced a base fee that adjusts algorithmically based on network utilization, providing more predictable pricing while still allowing users to add priority tips for faster inclusion. These mechanisms attempt to smooth the volatility of fee markets while ensuring that block space flows to those who value it most, though they cannot eliminate congestion during periods of exceptional demand.
The size and composition of the mempool fluctuates dramatically with network conditions. During NFT mints, token launches, or market volatility, mempools can balloon to contain hundreds of thousands of pending transactions. Conversely, during quiet periods, transactions might be confirmed almost instantly. Sophisticated users monitor mempool conditions in real-time, adjusting their fee strategies based on current congestion levels and predicting optimal submission windows for non-urgent transactions.
MEV and the Mempool
The transparent nature of most mempools creates opportunities for MEV (Maximal Extractable Value) extraction. Since pending transactions are visible to anyone monitoring the network, observers can anticipate the effects of upcoming trades and position their own transactions to profit. A trader spotting a large buy order in the mempool might quickly submit their own purchase before it, then sell after the original order pushes the price up - a practice known as frontrunning.
Sandwich attacks represent a particularly predatory form of MEV extraction. An attacker observes a pending swap transaction, submits a buy order just before it to raise the price, lets the victim’s transaction execute at the inflated price, and then immediately sells for profit. The victim receives fewer tokens than expected, with the difference flowing to the attacker. These attacks are executed by sophisticated bots that monitor mempools continuously, competing with each other in microsecond-level races to exploit opportunities.
Private mempools and transaction protection services have emerged as defenses against these predatory practices. Services like Flashbots allow users to submit transactions directly to validators without broadcasting them to the public mempool, protecting them from frontrunners. Some protocols implement commit-reveal schemes or encrypted mempools that hide transaction details until after ordering is finalized. These innovations represent an ongoing arms race between MEV extractors and those seeking to protect users from exploitation.
Mempool Across Chains
Different blockchain architectures implement varying approaches to pending transaction management. Bitcoin’s mempool operates on a relatively simple fee-rate priority system where transactions paying more satoshis per virtual byte receive preferential treatment. Ethereum’s mempool must account for more complex considerations including gas limits, nonce ordering, and smart contract interactions that can create dependencies between transactions.
Solana takes a fundamentally different approach by eliminating the traditional mempool concept entirely. Rather than maintaining a pool of pending transactions, Solana validators process transactions in a continuous stream, forwarding them directly to the current block producer. This design reduces the window for MEV extraction and eliminates much of the fee auction dynamics present on other chains, though it introduces its own challenges around transaction delivery and spam prevention during high-demand periods.
Layer 2 solutions and alternative blockchains continue to experiment with novel mempool designs. Some implement encrypted mempools that prevent transaction content from being visible until ordering is complete. Others use threshold cryptography or trusted execution environments to protect pending transactions. As the blockchain ecosystem matures, mempool architecture has become a key battleground for balancing the competing demands of transparency, fairness, efficiency, and MEV resistance.