Web3 Learning

What Is a Mempool?

By Safeheron Team

What is a mempool? It is the waiting area where blockchain nodes hold transactions that have been broadcast but not yet confirmed. After a transaction is sent, it queues in the mempools of individual nodes, and miners or validators pick transactions from there to include in blocks, usually favoring those that pay higher fees. Once a transaction is confirmed, it leaves the mempool. How congested the mempool is determines how much you need to pay in fees right now, and whether a transaction will get stuck.

How Do Transactions Queue in the Mempool?

There is no single, network-wide mempool; each node maintains its own. As a transaction propagates between nodes, each node checks rules such as the signature, balance and fee before adding it to its own mempool, so different nodes can see slightly different mempools. Block space is limited, so miners sort by fee rate and include the most profitable set in the next block. Bitcoin sorts by fee rate per byte and treats dependent parent and child transactions as a package; Ethereum mainly looks at the priority fee, and transactions from the same address must also execute in nonce order.

What Happens When the Mempool Is Full?

Each node’s mempool has a size limit; Bitcoin Core’s default is 300 MB. When the network is congested and there are too many transactions to hold, nodes drop the lowest fee-rate transactions first and temporarily raise the minimum fee rate for accepting new ones, so transactions below that rate cannot even propagate. Nodes also remove transactions that stay unconfirmed for a long time; Bitcoin Core’s default is two weeks. Being removed does not mean a transaction is invalid: as long as the funds it spends have not been spent by another transaction, anyone can rebroadcast it, and it can still confirm.

How Can Businesses Use Mempool Data?

The most direct use is fee estimation: by watching the volume and fee-rate distribution of transactions waiting in the mempool, you can judge what fee rate is likely to get a transaction confirmed within a given number of blocks, instead of hard-coding a number from experience. The second is monitoring your own transactions: after sending, confirm that each one has entered the mempool, and if it stays far back in the queue for a long time, raise an alert and consider speeding it up. For exchanges and payment companies, a deposit in the mempool is only a hint that funds are on the way; credit it only after enough confirmations, and screen its source with KYT.

Conclusion

The mempool is the waiting area for unconfirmed transactions. Each node maintains its own, and miners pick transactions from it by fee rate. When the mempool is full, low-fee transactions get dropped, but dropped transactions can still be rebroadcast. Businesses can use mempool data to estimate fees and monitor transaction status. Safeheron’s Wallet-as-a-Service provides businesses with MPC key management and a policy engine.

Want faster, more controllable on-chain transactions for your business? Contact Safeheron’s Sales Team to Book a 1:1 Demo

Share

Looking for a secure way to manage digital assets?

Talk to our experts and find the right solution for your business.

Request a Demo