Mempool
The mempool (memory pool) is the set of valid transactions that have been broadcast to a blockchain network but not yet included in a block. Each node keeps its own copy, and miners or validators pick transactions from it.
When a wallet sends a transaction, it is broadcast across the peer-to-peer network. Nodes check that it is valid and hold it in their mempool until a miner or validator includes it in a block. There is no single official mempool. Each node maintains its own, so contents can differ slightly from one node to another.
Block space is limited, so miners and validators generally favour transactions that pay higher fees. When demand is high, the mempool grows and low-fee transactions can wait a long time. For example, a Bitcoin payment sent with a low fee during a busy period may sit unconfirmed for hours. It can often be sped up with Replace-By-Fee (RBF) or Child-Pays-For-Parent (CPFP). On Ethereum, a pending transaction can be replaced by sending a new one with the same nonce and a higher fee.
A common misconception is that a pending transaction is final. Until it is included in a block and confirmed, it can be replaced, and nodes may drop it if it waits too long or its fee is too low. The mempool is also public. On networks like Ethereum, bots watch pending swaps and can place their own transactions around them, as in a sandwich attack. This is one reason some users send transactions through private RPC endpoints that bypass the public mempool.