← Back to Glossary

Mempool

Mempool, short for memory pool, is a temporary storage area where unconfirmed Bitcoin transactions are kept before they are included in a block. It acts as a waiting room for transactions, holding them until miners select and add them to the blockchain.

Mempool Explained in Simple Terms

The mempool is like a queue for Bitcoin transactions. When you send Bitcoin, the transaction doesn't go directly into a block. Instead, it waits in the mempool until miners pick it up and confirm it by adding it to the blockchain.

Once a transaction is broadcast to the network, it enters the mempool and waits for miners to validate it. Miners prioritize transactions with higher fees, as they are incentivized to include the most profitable transactions first.

The mempool is dynamic - it can vary in size depending on the network's traffic. During periods of high transaction activity, the mempool may become congested, leading to higher transaction fees as users compete to have their transactions processed quickly.

How Mempool Works

When a Bitcoin transaction is created, it is broadcast to the network. Nodes on the network validate the transaction and, if it is valid, add it to the mempool of unconfirmed transactions.

Miners periodically check the mempool to gather transactions for the next block. They typically prioritize transactions with higher fees, as these offer greater rewards for their mining efforts. Once a miner successfully mines a block, the transactions in that block are confirmed and removed from the mempool.

The mempool helps keep the Bitcoin network efficient by allowing miners to easily access and prioritize transactions. However, when the network is congested, the mempool can become large, leading to longer wait times for transaction confirmation and higher fees.

Example of Mempool in Practice

Imagine you send a Bitcoin transaction with a relatively low fee during a period of high demand. Your transaction is broadcast to the network but doesn't immediately make it into a block. Instead, it sits in the mempool while miners prioritize transactions with higher fees.

If the network remains congested, it may take longer for your transaction to be confirmed. Miners will only include your transaction once there is space in the next block, and they are incentivized to prioritize transactions that offer a higher fee.

Frequently Asked Questions

Still have questions about Mempool?
The size of the mempool depends on the number of unconfirmed transactions waiting to be included in a block. During periods of high transaction activity, the mempool can grow significantly, while it shrinks when the network is less active.
A transaction can stay in the mempool until it is confirmed and added to the blockchain. If a transaction remains unconfirmed for too long, it may eventually be dropped from the mempool, especially if its fee is too low to incentivize miners to include it.
Yes, you can increase the transaction fee to prioritize your transaction. This is known as "Replace by Fee" (RBF). Some wallets allow you to bump the fee of an unconfirmed transaction to make it more attractive to miners.
Yes, all valid Bitcoin transactions are first broadcast to the mempool before they are included in a block. However, if the network is congested, transactions with lower fees may stay in the mempool longer.
Transaction fees are the main incentive for miners to prioritize certain transactions. Transactions with higher fees are more likely to be included in the next block, while those with lower fees may stay in the mempool longer, waiting for miners to process them.