Writing

What Happens When You Send an Ethereum Transaction?

Reading time: 4 minutes

Have you ever swapped tokens or sent ETH and watched your wallet say “Pending”?

Your transaction doesn’t go straight from your wallet into the blockchain. It passes through several steps before it’s confirmed and, later, finalized. Here’s the journey in simple terms.

The big picture

flowchart TD
    A[You confirm in your wallet] --> B[Wallet signs the transaction]
    B --> C[RPC node receives it]
    C --> D[Transaction spreads across mempools]
    D --> E[Transaction is selected for a block]
    E --> F[Block is proposed and verified]
    F --> G[Transaction is confirmed]
    G --> H[Block reaches finality]

1. Your wallet signs the transaction

When you click Confirm, your wallet signs a transaction using your private key. This proves that you authorized it.

The transaction includes details such as the recipient, amount, nonce (your account’s transaction sequence number), and gas settings. For a token swap, it also includes instructions for the smart contract.

Signing doesn’t put the transaction on Ethereum yet.

2. An RPC node receives it

Your wallet sends the signed transaction to an RPC node—a server that connects your wallet to Ethereum.

The node checks basic rules, such as the signature, nonce, and fee settings. If it accepts the transaction, it usually returns a transaction hash: an identifier you can use to track it.

A transaction hash means the node received your transaction, not that it has been confirmed.

3. It waits in the mempool

Think of the mempool as a waiting room for transactions that haven’t made it into a block.

There’s no single Ethereum mempool. Nodes keep their own lists and share transactions with one another. That’s why a transaction may appear on one explorer before another—or not appear publicly at all if you used a private transaction service.

A pending transaction can also be replaced or dropped before inclusion.

4. A block builder selects it

Ethereum assigns a validator to propose a block in each 12-second slot. The validator may build the block itself or use a specialized builder through software such as MEV-Boost.

Builders choose and order transactions based on fees, nonce order, available block space, and other factors. A higher fee can help with inclusion, but it doesn’t guarantee a place in the next block.

This is also where MEV (maximal extractable value) matters: transaction ordering can create opportunities for arbitrage or harmful strategies such as sandwich attacks.

5. The block is proposed and checked

To prepare a block, a builder or validator executes its selected transactions to calculate the resulting state. The chosen validator then proposes the block to Ethereum.

Other nodes re-execute and verify those transactions. Validators also attest to the block as part of Ethereum’s proof-of-stake consensus.

6. Your transaction is confirmed

Once your transaction is included in a block on the chain, your wallet can show it as confirmed.

But included doesn’t always mean successful. A smart-contract call can revert—for example, if a swap’s price moves beyond your slippage limit. A reverted transaction does not keep its intended state changes, but it still uses gas.

You can check the transaction’s status, gas used, and event logs in its receipt on a block explorer.

7. The block reaches finality

Confirmation and finality aren’t the same thing. A recently proposed block could still be replaced during a chain reorganization.

Ethereum reaches finality when validators representing at least two-thirds of staked ETH vote for the required checkpoints. Under normal conditions, this takes about 15 minutes, though delays are possible.

Reversing a finalized block would require a major consensus failure and the destruction of a large amount of staked ETH. That’s why applications handling large deposits may wait for finality rather than just one confirmation.

What does your gas fee pay for?

For a typical EIP-1559 transaction, the fee depends on gas used × effective gas price. The effective gas price includes:

  • Base fee: Set by the protocol and burned.
  • Priority fee: The tip paid for including your transaction.

If your transaction uses 21,000 gas at a 20 gwei base fee and a 2 gwei tip, the fee is 0.000462 ETH. Actual costs depend on network conditions and what the transaction does.

What if your transaction stays pending?

First, look up its hash on Etherscan. If it isn’t visible, your RPC node may not have propagated it to the explorer’s nodes.

If it remains pending, check the current fee and whether an earlier transaction from your wallet is stuck. Many wallets offer Speed Up, which sends a replacement transaction with the same nonce and a higher fee. Replacement isn’t guaranteed, and you can’t cancel a transaction that has already been included.

What I learned

A transaction’s journey is more than clicking Confirm. Your wallet authorizes it, nodes share it, builders prepare blocks, validators and other nodes check the result, and consensus eventually finalizes it.

Understanding these steps makes it much easier to diagnose pending or failed transactions—and build dApps that explain what’s happening to their users.

One thing to watch: Ethereum currently uses out-of-protocol block building tools such as MEV-Boost. Enshrined proposer-builder separation (ePBS) is planned for the upcoming Glamsterdam upgrade; it isn’t live yet as of September 2026.

Further reading

Originally published on HackMD . Comments and discussion live there.