Explainer

How blockchain works, step by step

From pressing send in a wallet to a payment you can treat as final, a transaction passes through six stages. This is each of them, and why the process is safe without a central authority.

Updated · 3 min read

01A transaction's journey

If you haven't yet, read what a blockchain is first. This guide follows a single payment through the network, from creation to finality.

  1. 1

    Create and sign Your wallet

    You enter an amount and address; your private key signs the transaction.

  2. 2

    Broadcast and check Network nodes

    The signed transaction is sent to nodes, which verify the signature and that the funds exist.

  3. 3

    Wait in the mempool Waiting area

    Valid transactions queue up. A higher fee usually gets picked sooner.

  4. 4

    Build a block Validator / miner

    A chosen validator bundles queued transactions into a candidate block.

  5. 5

    Agree on the block Whole network

    Other nodes check the block and add it to their copy of the chain (consensus).

  6. 6

    Gain confirmations Block depth

    Each new block on top is another confirmation; reversal becomes less and less likely.

The six stages between sending a transaction and being able to rely on it.

021. Signing: proof it is yours

A transaction says, in effect, "move this amount from my address to that address." The wallet signs it with the sender's private key. Anyone can check the signature against the sender's public key, but nobody can forge one without the private key — and the key itself is never revealed.

032–3. Verification and the mempool

The signed transaction is broadcast to nearby nodes, which pass it on. Each node independently checks that the signature is valid, that the sender really has the funds, and that the same funds aren't being spent twice. Invalid transactions are dropped immediately.

Valid ones wait in a pool of pending transactions, the mempool. When a network is busy, senders attach a higher fee to get picked sooner — the network fee, paid in the chain's native coin (ETH, BNB, TRX and so on). See how Payaries's gas station handles it.

044–5. Building a block and reaching consensus

Someone has to decide which pending transactions go into the next block, and in what order, so that every node ends up with the same history. That is the job of the consensus mechanism. The two main designs:

Proof of workProof of stake
Who proposes a blockMiners racing to solve a computational puzzleA validator selected in proportion to the coins they have locked up as a stake
What makes cheating costlyThe electricity and hardware spentThe staked coins can be forfeited for dishonest behaviour
Used byBitcoinEthereum (since 2022), BNB Smart Chain, Polygon and others; Tron uses a delegated variant
Typical block timeAbout 10 minutes on BitcoinSeconds — about 12 on Ethereum, about 3 on Tron

Either way, the proposed block is broadcast, other nodes verify every transaction inside it and its link to the previous block, and the chain grows by one. Honest nodes always follow the valid chain with the most accumulated work or backing.

056. Confirmations and finality

Once your transaction is in a block, it has one confirmation. Each block added after it is another. Occasionally two blocks are produced at nearly the same time and the network briefly disagrees; one branch is later abandoned and its transactions return to the mempool. That is why a single confirmation is not proof of payment on every chain, and why the number needed varies by network.

Deeper blocks are exponentially harder to replace. Merchants therefore wait for a chain-specific number of confirmations before treating a payment as final — the logic behind crypto payment confirmations.

06Why you can trust it without trusting anyone

  • Signatures make forging a payment impractical.
  • Hash links make rewriting history detectable.
  • Independent verification means each node checks everything itself, rather than taking someone's word.
  • Economic cost — work or staked coins — makes attacking the network more expensive than it is worth on large chains.

07What this means for accepting payments

A merchant doesn't need to run nodes or watch mempools. A crypto payment gateway does that work across several chains and tells your backend when a payment has reached its required confirmations.

Questions

How does a blockchain work, briefly?
A signed transaction is broadcast, checked by nodes, collected into a block by a validator or miner, agreed by the network and added to the chain. Each later block adds a confirmation.
What is the difference between proof of work and proof of stake?
Proof of work secures a chain with computing effort, as Bitcoin does. Proof of stake secures it with coins that validators lock up and can lose if they cheat, as on Ethereum today.
How long does a blockchain transaction take?
From seconds to tens of minutes, depending on the network, its current congestion and how many confirmations you wait for. Bitcoin blocks average around ten minutes; many other chains produce blocks in seconds.
Why do transactions need multiple confirmations?
Because a block can occasionally be replaced shortly after it appears. Each additional block on top makes reversal less likely, so more confirmations means more certainty.

Next

See a payment confirm in real time

Test keys work immediately, with no approval step. Payaries runs on real mainnet networks, so use a small real payment to test.