CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Blockchain & Web3

⛓️ Blockchain & Web3 Β· State Machine

Blockchain Transaction States

The states a blockchain transaction goes through from signing to final confirmation, including replacement and dropped transactions.

More Blockchain & Web3 templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • A transaction waits in the mempool until a block includes it
  • Low fees can leave it stuck, so it can be replaced
  • Apps wait for several confirmations before treating it as final

Prompt used

State machine for an Ethereum transaction: Signed, Broadcast, Pending in the mempool, Included in a block, Confirming as more blocks are added, Final after enough confirmations. A pending transaction can be Replaced with a higher fee or Dropped from the mempool. An included transaction can be Reverted if the contract call fails.

Mermaid code
stateDiagram-v2
  [*] --> Signed
  Signed --> Broadcast
  Broadcast --> Pending: In mempool
  Pending --> Included: Mined in a block
  Pending --> Replaced: Resent with higher fee
  Pending --> Dropped: Evicted from mempool
  Included --> Reverted: Contract call failed
  Included --> Confirming
  Confirming --> Final: 12 confirmations
  Final --> [*]
  Reverted --> [*]
  Replaced --> [*]
  Dropped --> [*]

Inside this diagram

A state diagram with 9 states and 8 transitions.

States

  • Signed
  • Broadcast
  • Pending
  • Included
  • Replaced
  • Dropped
  • Reverted
  • Confirming
  • Final

Starts in

  • Signed

Ends in

  • Final
  • Reverted
  • Replaced
  • Dropped

Transitions

  • Signed β†’ Broadcast
  • Broadcast β†’ Pending when In mempool
  • Pending β†’ Included when Mined in a block
  • Pending β†’ Replaced when Resent with higher fee
  • Pending β†’ Dropped when Evicted from mempool
  • Included β†’ Reverted when Contract call failed
  • Included β†’ Confirming
  • Confirming β†’ Final when 12 confirmations

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

C4 ArchitectureProBlockchain & Web3

Crypto Exchange Architecture

The main parts of a centralised crypto exchange: a matching engine, wallets split between hot and cold storage, deposits and withdrawals, and compliance checks.

SequenceBlockchain & Web3

Crypto Withdrawal Sequence

How an exchange processes a crypto withdrawal safely: balance hold, 2FA, risk and address screening, signing, broadcast and confirmations.

C4 ArchitectureProBlockchain & Web3

NFT Marketplace

How an NFT marketplace works: listings signed off-chain, metadata on IPFS, and sales settled by a marketplace smart contract.

FlowchartBlockchain & Web3

Smart Contract Upgrade Process

How a team safely upgrades a smart contract behind a proxy: audit, testnet rehearsal, multi-signature approval and a timelock before the change goes live.

NetworkBlockchain & Web3

Hot and Cold Wallet Custody

How a custodian separates internet-connected hot wallets from offline cold storage, with signing hardware and an air-gapped transfer process.

DeploymentProBlockchain & Web3

Web3 dApp Deployment

Where a decentralised app's parts run: frontend on IPFS, contracts on a layer-2 chain, and supporting services like RPC providers and an indexer.