What Is a Mempool and How Does It Work? A Beginner Guide
Key Takeaways
A mempool is a waiting room on a blockchain node where unmined transactions are stored before being added to the blockchain
Every node in a blockchain network has its own mempool; together they form a collective mempool
Miners and validators prioritize transactions with higher fees, creating a competitive market within mempools
Mempool congestion occurs when transaction demand exceeds block space capacity
Understanding mempool mechanics helps users optimize fees and avoid delays
Introduction
If you have ever executed a cryptocurrency transaction, such as sending funds to another wallet address, you may have noticed a delay. These delayed transactions are usually held in what is called a mempool.
This guide details what a mempool is, how it works, and why it is an essential part of a cryptocurrency transaction.
Before trading any crypto asset, you can register on WEEX to access a regulated trading environment.
What Is a Mempool?
A mempool is a sort of waiting room on a blockchain node where unmined transactions are stored. The term mempool is a combination of two words, memory and pool, and refers to the space where pending transactions wait in line before they are added to the blockchain.
Bitcoin was the first blockchain to introduce and utilize the concept of a transaction memory pool (mempool). Other blockchains like Ethereum also later adopted the term. All blockchains have some type of mempool, even though they may have a different term for it. For example, the Parity blockchain uses the term Transaction Queue to represent mempools on their chain.
| Term | Blockchain |
|---|---|
| Mempool | Bitcoin, Ethereum |
| Transaction Queue | Parity |
Role in Blockchain Transactions
Mempools play a major role in how blockchain nodes operate. For a transaction to be completed and recorded on a blockchain, it must first be added to a block. However, not all nodes on a blockchain network can create a new block.
| Consensus Mechanism | Who Adds Transactions |
|---|---|
| Proof-of-Work (Bitcoin) | Miners |
| Proof-of-Stake (Ethereum) | Validators or Proposers |
After initiating a transaction, users must depend on a miner or a validator to approve the transaction and add it to the blockchain. This does not happen instantly. There is a delay between the time a transaction was initiated and when it will be completed. During this time, the transaction is stored in a mempool awaiting confirmation.
How Does the Mempool Work?
First, you should note that blockchains do not have just one mempool. On the contrary, every node in a particular blockchain network has its own transaction memory pool. For instance, each node in the Bitcoin blockchain has its own pool of transactions waiting to be added to the public ledger. Together, mempools in individual nodes make up a collective mempool.
When a user initiates a transaction, it is sent to a node. The node will then add the transaction to its mempool and put it in a queue, awaiting validation. Once the transaction is validated, it will be marked as pending. Miners can only add transactions marked as pending to a new block.
Mempool Dynamics and Transaction Lifecycle
To illustrate mempool dynamics and transaction lifecycle, let us assume that you want to send 0.01 BTC to a friend.
Step-by-step process:
| Step | Description |
|---|---|
| 1 | Key in your friend wallet address, accept blockchain transaction fees, and hit Send |
| 2 | Transaction is added to the nearest mempool as a queued transaction |
| 3 | Transaction is broadcasted to other nodes but not yet on the blockchain |
| 4 | Each node performs tests to check that the transaction is genuine |
| 5 | If approved, transaction status changes from queued to pending |
| 6 | A miner picks the pending transaction and adds it to a new block |
| 7 | Miner broadcasts the block back to all nodes |
| 8 | Nodes that still have the transaction stored delete it from their mempools |
| 9 | Transaction is completed; recipient receives the funds |
Mempool Congestion and Backlog
Congestion in a transaction mempool occurs when the demand for transactions exceeds the number of transactions that can fit in one block. Several factors can trigger mempool backlog.
Causes of Mempool Congestion:
| Factor | Description |
|---|---|
| Network Congestion | High transaction volumes pressure available block space |
| Events or News | Token launches, airdrops, or celebrity support cause sudden demand spikes |
| Forks or Network Upgrades | Nodes updating changes may cause momentary congestion |
The average number of transactions in one block in the Bitcoin blockchain is currently around 2800. If the number of pending transactions greatly surpasses this number for several hours, the network will get congested, and as a result, the mempools will also get congested.
Understanding these factors and how they impact mempool congestion is important for users and developers. It enables them to anticipate potential delays and make the necessary adjustments to save on gas fees and avoid delays.
Managing Transaction Priority and Fees
With many transactions occurring at the same time, there are several factors that determine which transactions get prioritized within a mempool.
Fee Estimation and Transaction Inclusion:
One of the primary factors determining the order of executing transactions within a mempool is the fees attached to each transaction. Miners and validators are driven by profit, and they get to choose which transactions they want to add to a new block. Unsurprisingly, they favor transactions with higher fees attached to them since this translates to greater rewards.
Therefore, the fees associated with a transaction heavily influence its chances of being included in a block. Miners normally organize transactions inside their mempools in terms of fees per unit of transaction data, commonly represented as satoshis per byte. From there, they prioritize transactions with the highest rates of fees until the block is full.
This fee-based approach creates a competitive market within mempools. It forces users to choose between paying higher fees for fast transaction completion or lower fees at the expense of longer waiting periods.
Impact of Network Congestion:
| Effect | Description |
|---|---|
| Increased Confirmation Times | Miners prioritize higher fees; lowest fees may take hours or days |
| Fee Competition | Users compete by paying higher fees for faster confirmation |
Mempool Synchronization and Block Space
Mempools do not have to keep a matching list of all transactions waiting to be added to a block. However, they have to know which transactions have already been added to the blockchain so that they can remove them from their mempools if still stored there. When a miner broadcasts a new block to the nodes, they can check for this information and thus achieve mempool synchronization. This ensures that only unmined transactions are kept in mempools.
Block space is the capacity available to include transactions in a new block. Since this space is limited, miners or validators prioritize transactions with higher gas fees while the rest are sent to the mempools awaiting confirmations.
Mempool Size and Eviction
Every transaction added to a mempool is a piece of data not more than a few kilobytes (KB). The sum of all the bytes making up the transactions is the size of the mempool. A larger mempool size indicates that there are numerous transactions awaiting confirmation. It could also signify a spike in network traffic.
While mempools do not have a predefined maximum size, nodes can set size limits for their mempools. This is normally set at 300MB for Bitcoin. When the mempool reaches this threshold, nodes may enforce a minimum transaction fee requirement. Any transactions with a fee rate lower than this limit are evicted from the mempool. By doing so, nodes can avoid crashing due to an overload of pending transactions.
Understanding how mempool size affects transaction fees and times is important since it enables users to pick the best times to carry out a transaction. Several websites track the global mempool size on the Bitcoin network, such as mempool.space and BitcoinTicker.co.
Mempool in Bitcoin and Ethereum Networks
Bitcoin Mempool:
All valid transactions sent across the Bitcoin network are not added to the blockchain instantly. They have to wait in the Bitcoin mempool.
Originally, transaction fees in Bitcoin were measured in the number of satoshis per byte of transaction. However, this changed after the SegWit upgrade. Now, transactions in a Bitcoin mempool are measured in weight units. As a result of the upgrade, Bitcoin blocks can now accommodate up to four times more transactions.
Ethereum Mempool:
Like Bitcoin, the Ethereum blockchain initially utilized the Ethereum mempool to serve as temporary storage for transactions awaiting to be added onto a block by miners. However, after Ethereum move from a proof-of-work to a proof-of-stake consensus mechanism, the network introduced the concept of a block builder.
Block builders are specialized third-party entities that compile transactions to create an optimized transaction bundle that can form a block. They do so by reordering or including certain transactions in the bundle from a transaction memory pool. Eventually, they offer the bundles to proposers and validators for inclusion in a block at a fee.
The value of a block depends on the transactions it contains. This incentivizes block builders to create the most lucrative blocks as they are likely to be prioritized and confirmed quicker by validators.
| Network | Mempool Feature |
|---|---|
| Bitcoin | Measured in weight units after SegWit; 4x more transactions per block |
| Ethereum | Block builders create optimized transaction bundles |
Conclusion
A mempool is a vital component in blockchain transactions. It acts as a waiting room where unconfirmed transactions await validation and eventual inclusion in a new block. Understanding the mechanics of a mempool, such as transaction queuing, validation, and fee prioritization, is essential for cryptocurrency users.
For those looking to trade crypto with a better understanding of transaction mechanics, a regulated platform can provide a smoother experience.
If you want to buy WXT now, you can sign up for a WEEX account.
Welcome Bonus from WEEX — Claim Up to 30,000 USDT! Join Now!
Frequently Asked Questions (FAQ)
Q1: What is a mempool in crypto?
A mempool is a waiting room on a blockchain node where unmined transactions are stored before being added to the blockchain. The term combines memory and pool.
Q2: How does a mempool work?
When a user initiates a transaction, it is sent to a node and added to its mempool as queued. After validation, it becomes pending. Miners or validators then pick pending transactions with the highest fees to add to a new block.
Q3: What causes mempool congestion?
Mempool congestion occurs when transaction demand exceeds block space capacity. Causes include network congestion, sudden events like token launches or airdrops, and network upgrades or forks.
Q4: How are transactions prioritized in a mempool?
Miners and validators prioritize transactions with higher fees. They organize transactions by fees per unit of data and select the highest-paying ones until the block is full.
Q5: What happens when a mempool is full?
Nodes can set size limits for their mempools (300MB for Bitcoin). When full, they may enforce a minimum transaction fee requirement and evict transactions with lower fees to avoid crashing.
Q6: How does Bitcoin mempool differ from Ethereum mempool?
Bitcoin mempool measures transactions in weight units after SegWit. Ethereum uses block builders that compile optimized transaction bundles from the mempool for validators.
Risk Disclaime:This article is for informational purposes only and does not constitute financial, investment, or legal advice. Cryptocurrency transactions involve network fees and potential delays. Always conduct your own research before making any investment decisions.

