BestChange News
Best Change news

Mempool explained: how transactions wait for confirmation on the blockchain

Advanced Hype Crypto for newbies Crypto tools
Before a cryptocurrency transfer is permanently recorded on the blockchain, the transaction goes through several stages:
  • the user creates a transaction;
  • signs it and broadcasts it to the network;
  • the transaction undergoes an initial validation and enters the mempool;
  • a miner includes it in a block;
  • Once the block is added to the blockchain, the transaction receives its first confirmation.
Thus, before being included in a block, a transaction spends some time in a kind of waiting queue — the mempool.

What is a mempool?

A mempool is a collection of transactions that have already been broadcast to a blockchain network but have not yet been included in a block.
However, it would be incorrect to think of the mempool as a single shared queue stored in one central location. Each network node maintains its own set of unconfirmed transactions, so the contents of different nodes’ mempools may vary slightly.
The term comes from the English words memory and pool. In practice, a mempool is a temporary storage area where a node keeps transactions that are eligible for further processing.
The state of the mempool directly affects transaction speed. If more users want to send transactions than the network can include in upcoming blocks, a backlog forms. Users begin competing for block space, and network fees rise.

How does a mempool work?

After a transaction is sent, it usually does not appear on the blockchain immediately.
First, it is received by network nodes. They perform an initial validation and, if the transaction complies with the protocol rules and the node’s local policy, store it in their mempool and relay it to other network participants.
The fact that a transaction has entered the mempool does not necessarily mean it will be included in the next block. Confirmation speed is primarily affected by two factors:
  • Transaction fee. Miners aim to maximize fee revenue, so they generally prioritize the most profitable transactions with higher fees.
  • Limited block capacity. A block cannot contain an unlimited number of transactions. If demand exceeds the available block space, some transfers must continue waiting.
In Bitcoin, the limit is determined primarily not by the regular file size of the block, but by its weight — up to 4 million weight units (WU). As a result, the number of transactions in each block can vary significantly depending on the structure and size of individual transactions.
Suppose 10,000 transactions are in the mempool, but only some can fit into the next block. The rest will remain pending until subsequent blocks. Meanwhile, new transactions with more attractive fees may enter the network and receive higher priority.
This is why the principle of “first sent, first confirmed” does not always apply in blockchain networks.
The more transactions appear with higher fee rates, the longer a low-priority transaction may have to wait.

What happens after a transaction is included in a block?

When a miner includes a transaction in a newly mined block, and that block is accepted by the network, the transaction receives its first confirmation.
Each subsequent block increases the number of confirmations. The more confirmations a transaction has, the more difficult it becomes to alter the blockchain history in a way that removes that transaction.
For Bitcoin, six confirmations are traditionally considered a high level of reliability. However, there is no universal number: each service decides independently how many confirmations it considers sufficient.
For example, an exchange service may credit funds after one, two, or three confirmations, while setting a higher threshold for certain assets, transaction amounts, or exchange directions.
It is also important to understand that the main validation of a transaction takes place before it is accepted into the mempool. Among other things, nodes check:
  • whether the transaction format and signatures are valid;
  • whether the specified coins can actually be spent;
  • whether there is a conflict with transactions already known to the node;
  • whether the transaction complies with the network rules;
  • whether it complies with the node’s local policy, including minimum fee requirements.
After successful validation, the transaction is stored in the node’s local mempool and propagated across the network.
It disappears from the mempool after being included in a confirmed block. In some cases, however, a node may remove it earlier — for example, if it has been waiting too long, conflicts with another transaction, or the node needs to free up memory.

What should you do if a transaction stays in the mempool for a long time?

During periods of heavy network congestion, a transfer may remain unconfirmed for several hours or even days.
In most cases, the reason is simple: the selected transaction fee is too low compared with the current level of network congestion.
At the same time, a stuck transaction will not necessarily remain in mempools forever. Nodes may eventually remove it from their local storage. After that, under certain conditions, the funds may once again become available for creating a new transaction.
If waiting is not an option, Bitcoin and some other networks provide ways to increase the priority of a transaction that has already been sent.

Replace-By-Fee — replacing a transaction with a higher fee

One of the main ways to speed up a Bitcoin transaction is the Replace-By-Fee (RBF) mechanism.
It allows an unconfirmed transaction to be replaced with a new version that pays a higher fee.
If a wallet supports RBF, the user usually only needs to select a feature such as “Speed up,” “Increase fee,” or “Bump fee.” The wallet will then create a new version of the transaction with a higher fee.
The ability to make such a replacement depends on the type of the original transaction and the capabilities of the wallet being used.
RBF can also be used in an attempt to effectively cancel a transfer. In this case, a competing transaction is created that sends the same coins back to the user or to another address under their control, but with a higher fee.
However, such a cancellation cannot be considered guaranteed until confirmation: one of the competing transactions will still have to be included in a block.

Child Pays For Parent — paying for the parent transaction

Another method is called Child Pays For Parent (CPFP).
It is used when a user is able to spend one of the outputs of an unconfirmed transaction.
A new “child” transaction is created with a higher fee. However, it cannot be confirmed before the original transaction because the child transaction spends funds from the still-unconfirmed parent transaction.
As a result, the miner evaluates both transactions as a linked package. If their combined fee is attractive enough, it becomes profitable to include both the parent and the child transaction in the same block.
In this way, the higher fee of the second transaction effectively compensates for the excessively low fee of the first one.
Exchanger Rate Min. Max. Reviews
Open this exchange direction on the monitoring website