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

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 --> [*]

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.