What Really Happens Before a Transaction Is On-Chain?

You click “Send” in your wallet, and the interface quickly shows “Submitted.” But when you paste the transaction hash into a block explorer, it shows Pending; the recipient has not received the funds either. If the wallet says it was sent, why isn’t the transaction on-chain?

This article follows a transaction’s path from wallet to block: where it goes first, why it waits, who selects it, and when it is truly complete.

After You Click Send, the Transaction Does Not Immediately Go On-Chain

First, distinguish three easily confused states:

  • Submitted: The wallet has constructed and signed the transaction and handed it to a node or service.
  • In the mempool: The transaction has been received by a node and is waiting to be included in a block.
  • Confirmed on-chain: The transaction has been included in a valid block and gains confirmations as subsequent blocks are added.

In a typical self-custodial wallet, clicking “Send” first triggers construction and signing of the transaction. A private-key signature means you authorize the transaction, but it does not directly modify the blockchain. The wallet then broadcasts the signed transaction to nodes, which check it, relay it, and place it in their own pool of unconfirmed transactions.

A transaction typically follows this path:

  1. The wallet constructs the transaction, and the user signs it with a private key.
  2. The wallet sends the transaction to one or more nodes.
  3. The node performs an initial validation.
  4. If validation passes, the transaction enters that node’s mempool.
  5. Miners or validators select transactions from the mempool and include them in a candidate block.
  6. Once the network accepts the block, the transaction gains confirmation.

So when a wallet shows “Sent,” a more accurate interpretation is: the transaction has been handed to the network and has begun the process of waiting and propagation. It may be on-chain within minutes, or it may wait longer because of fees, nonce, or network conditions.

When a block explorer shows Pending, it usually means the node or indexing service it connects to has not yet seen the transaction included in a block. This is not a formal state on the blockchain; it is a display of the current unconfirmed situation.

What the Mempool Is: A Node’s Pool of Unconfirmed Transactions

A mempool can be understood as a “pool of unconfirmed transactions” maintained by a node. It holds transactions that have been received and passed initial validation but have not yet been included in a block. The name comes from memory pool; some clients also use terms such as transaction pool or pending pool.

It is important to emphasize that the mempool is not an area on the blockchain, nor is it a single official list shared by the entire network. The blockchain itself records transactions that have already been included in blocks; the mempool is a temporary list maintained locally by node software.

This leads to two important consequences:

  1. Each node can have its own mempool. Nodes do not receive exactly the same transactions, and their validation policies, capacity limits, and operating states differ, so the set of unconfirmed transactions they see may also differ.
  2. Transactions in the mempool are not yet final records. A transaction may later be included in a block, or it may leave a node’s mempool because it has waited too long, its fee is too low, or the node applies a cleanup policy.

You can think of the mempool as a bus station or airport waiting area: the transaction has arrived at the station, but it has not boarded, let alone reached its destination. This analogy is helpful, but it has limits. A real waiting area is usually managed by a single operator, and passengers often queue according to rules; the mempool is not like that. Each node has its own “waiting area,” and block producers do not necessarily select transactions strictly in arrival order.

How Transactions Enter the Mempool: Broadcasting and Initial Validation

A wallet usually does not write a transaction directly to the blockchain. Instead, it sends the signed transaction to a node. That node may be one provided by the wallet service, or it may be one the user runs. When a node receives a transaction, it does not immediately treat it as confirmed; it first performs initial validation.

The checks differ somewhat between blockchains, but typically include:

  • whether the transaction format is complete;
  • whether the signature is valid and matches the sending account;
  • whether the sender has enough balance to cover the transfer amount and any applicable fee;
  • in account-model networks, whether the transaction’s nonce follows the rules;
  • in the UTXO model, whether the inputs referenced by the transaction exist and have not already been spent.

Here, nonce can be understood as the transaction sequence number in an account model. It prevents the same transaction from being replayed and requires multiple transactions from the same account to be processed in order.

If validation fails, the node rejects the transaction, and it usually will not propagate further. If validation passes, the node places the transaction in its mempool and relays it to other nodes. This process is a bit like a security check: only those who pass the initial check can enter the waiting area. But passing security does not guarantee boarding, and entering the mempool does not guarantee inclusion in a block.

How Miners and Validators Select Transactions: Fees and Priority

A block can hold only a limited number of transactions. When the mempool contains more transactions than a block can hold, the miners or validators responsible for producing the block must choose which transactions to include first.

In most networks, fees are an important incentive. Block producers are usually more willing to select transactions with higher fees, but more precisely, they compare the effective fee per unit of block space, not necessarily the total fee alone. The more block space a transaction occupies, the lower the revenue per unit of space may be, even if its total fee looks higher.

Here is a simple example: suppose transaction A bids 100 per unit of gas and transaction B bids 30. In a simplified scenario that sorts only by fee rate, A is more likely to be selected first. But real block production does not necessarily sort strictly from highest to lowest fee; it may also consider nonce order, transaction size, dependencies between transactions, arrival time, and client policy.

Therefore, a higher fee usually only increases the probability of being selected first; it is not a guarantee of inclusion in the next block. If a transaction’s preceding nonce has not been processed, or if the block producer never received the transaction, simply raising the fee may not take effect immediately.

Why a Transaction Stays Pending: Stuck, Replaced, and Dropped

Once a transaction enters the mempool, it is not automatically guaranteed to be included in a block eventually. It may be confirmed quickly, or it may remain unconfirmed for a long time.

Fee Too Low

When the network has many transactions, low-fee transactions may remain at the back of the queue for a long time. A node’s mempool has limited capacity, and when the pool approaches its limit, the node may remove some transactions according to its own policy—for example, prioritizing transactions with higher fees. Default rules can differ between clients and networks, and they can change with versions and configuration; for the actual rules, refer to the documentation for the network, wallet, and node you are using.

Stuck Due to Nonce Ordering

In networks that use the account model, transactions from the same account usually have to be processed in nonce order. For example, if a transaction with nonce 3 for an account has not been confirmed, a transaction with nonce 4 usually cannot be included normally before it. Even if nonce 4 has a higher fee, it may have to wait for the earlier transaction to complete.

This is also why, when one transaction gets stuck, later transactions from the same account sometimes queue up behind it.

Replacing Transactions and Speeding Them Up

While a transaction is unconfirmed, some networks and wallets allow users to try to “speed up” or “replace” it. A common approach is to resend a transaction with a higher fee at the same position as the original transaction, making block producers more willing to select the new version.

However, this capability depends on the specific network rules, transaction type, and wallet support. Some networks require the original transaction to be replaceable from the start; some wallets offer a “speed up” button, while others do not. It is not an operation that works universally on every chain or for every transaction.

Dropped by a Node

If a transaction remains low-fee for a long time, a node’s mempool is under capacity pressure, or the node has its own cleanup policy, the transaction may disappear from a node’s mempool. This does not mean it has been deleted from the blockchain—it was never on-chain in the first place. It may still exist in other nodes’ mempools, or the wallet may rebroadcast it later.

So when you see a transaction disappear from a pending list, you cannot immediately conclude that it succeeded or failed. The most reliable way is to check the on-chain result for the transaction hash.

“Canceling a Transaction” Does Not Delete an On-Chain Record

Some people interpret “cancel” in a wallet as deleting a transaction from the blockchain. More accurately, canceling while unconfirmed is usually just an attempt to replace the original transaction with another transaction so that the original is no longer confirmed. Once a transaction has entered a block, it cannot be directly deleted from the blockchain; you can only initiate new transactions to change the subsequent state.

The Mempool Is Not a Single Global Queue

Transactions propagate through relay between nodes, commonly called gossip. When a node receives a new transaction, it tells its neighbor nodes; those neighbors relay it further. This process takes time, and not every node necessarily retains the same transaction.

As a result, different nodes may see different unconfirmed transactions:

  • one node may have received a transaction while another has not yet received it;
  • one node may retain a transaction because of capacity or policy, while another has already removed it;
  • different block explorers connect to different nodes or indexing services, so the pending lists they show may also differ.

This is why the idea that “all nodes have exactly the same mempool” is inaccurate. The mempool is a node-local view, not a single official queue shared by the entire network. A transaction may show Pending in one explorer and may not even be found temporarily in another; this does not necessarily mean the transaction has failed.

The only truly network-wide final record is the set of transactions already included in blocks. To determine whether a transaction is complete, you ultimately need to look at the on-chain blocks, not just the unconfirmed list of a particular node or explorer.

Final Confirmation: When a Transaction Truly Leaves the Mempool

When a transaction is included in a valid block and that block propagates across the network, nodes remove the transaction from their mempools. At this point the transaction has an on-chain record, but that does not necessarily mean it has reached a high degree of finality.

As new blocks continue to be produced after that block, each additional block after the one containing the transaction usually adds one confirmation. Different blockchains have different finality mechanisms: some rely more on probabilistic confirmation, while others have clearer final confirmation rules. Ordinary users do not need to delve into consensus details here, but they should know that “included in a block” and “having enough confirmations” are two related but not entirely identical stages.

If a transaction is included at block height N, a block explorer will usually show the confirmation count starting at 0 and increasing. The higher the number of confirmations, the lower the probability that the transaction will be reversed. How many confirmations are considered safe depends on network rules, the transaction amount, and the recipient’s risk requirements.

When checking transaction status, the most reliable method is to look at the transaction hash:

  • whether it has appeared in a block;
  • how many blocks have been added after the block containing it;
  • whether the number of confirmations required by the recipient or trading platform has been reached.

A wallet showing “Sent” only means the transaction has been submitted; a block explorer showing Pending only means it may still be waiting; only when it is included in a block and confirmed is it closer to truly complete.

Putting the whole process together: the wallet signs and broadcasts → nodes validate → the transaction enters a node’s own mempool → miners or validators select and include it in a block → the block propagates and gains confirmations. The mempool is the waiting area on this journey, not the destination; and “submitted” does not mean “completed.”

No posts found.
Scroll to Top