Botanix
Visit websiteTry Testnet
  • Welcome!
  • Get to know the Technology
    • Introduction to Botanix Labs
    • Risk warning
    • Terminology
    • Basic knowledge
      • Proof-of-Stake
      • Ethereum Virtual Machine (EVM)
      • UTXO vs Account Based Model
    • Introductory concepts
      • The Botanix EVM
      • The Spiderchain
      • Orchestrator node
      • Deposit & Withdraw
      • Transaction fees
    • Advanced concepts
      • Bitcoin security inheritance
      • Bridging
      • Consensus
      • Finality
        • Finality in a Proof-of-Work (PoW)
        • Finality in a Proof-of-Stake (PoS)
        • Finality on Botanix EVM
      • Forward security
        • Forward security in cryptography
        • The Spiderchain's Forward Security
        • Inventory management
      • FROST
      • Reth
      • Orchestrators
      • Staking
    • Roadmap to Spiderchain
      • Single Node (Testnet)
      • Botanix Federation
        • Consensus - CometBFT
          • Byzantine Fault Tolerance (BFT)
        • Node types
        • Multisig details - FROST
        • Peg-in / Peg-out
      • Botanix Federation with Staking
      • Slashing
      • Spiderchain DynaFed
      • Permissionless staking
      • Fully Decentralized Layer 2
    • Deeper dive: Whitepaper
  • How to use the Botanix EVM
    • Getting started with the Botanix EVM (testnet)
    • Risk warning
    • Step 1 - Set up your wallet
    • Step 2 - Get test funds
    • Step 3 - Send a transaction
    • Step 4 - Use dApps
    • Step 5 - Deploy your first contract / Launch your own token
    • Step 6 - Withdraw
    • FAQ - Testnet V1
  • Build dApps
    • Introduction
    • Risk warning
    • Tools
      • Useful links
      • Development Frameworks
      • Web3 libraries and tools
      • Oracle Tools
      • Block explorer
        • Routescan
      • Indexers
        • The Graph
        • SubQuery
      • WalletConnect
      • Account Abstraction with BTC Connect
      • Muticall3
    • Build on the Botanix EVM
      • Basic Botanix EVM Information
      • Gas fees
      • Develop a new dApp
      • Migrate existing dApps
      • Quickstart - Build a dApp with Botanix (Solidity, Hardhat)
  • Run a node
    • Introduction
    • Run an RPC Node
  • Glossary
Powered by GitBook
On this page
  • How Does the UTXO Model Work?
  • How Does the Account-Based Model Work?
  • Key Differences in UTXO vs. Account-based Blockchains
  • Conclusion
  • Movie

Was this helpful?

  1. Get to know the Technology
  2. Basic knowledge

UTXO vs Account Based Model

This page gives a short description of the differences between UTXO and Account Based Model.

PreviousEthereum Virtual Machine (EVM)NextIntroductory concepts

Last updated 1 year ago

Was this helpful?

What does the Botanix EVM use?

Thanks to the , we can make the transition from Bitcoin's UTXO model to an account model used in the EVM. This means that the Botanix EVM uses an account based model.

The UTXO and account-based models represent the two most popular bookkeeping methods in the blockchain space. The two models represent two fundamentally different ways on how blockchains process and record transactions.

In a nutshell, the UTXO model works similarly to cash transactions, while the account-based model works similarly to how bank accounts work.

How Does the UTXO Model Work?

UTXOs work similarly to cash, where each UTXO is like a unique fiat paper bill that users can spend. Each user in UTXO-based blockchains can keep track of its balance by adding up the cryptocurrencies in their possession.

For example, assume a guy named Bob goes to a fast-food restaurant looking to buy a burger that costs $10. However, Bob only has a $20 bill, meaning that when he pays for the burger, the restaurant must give him a $10 bill as a change.

In UTXO-based blockchains, the $20 bill and the $10 change would be represented as two separate UTXOs. So, in Bob’s case, his cryptocurrency account balance is just a sum of his UTXOs, just like his physical wallet is just a sum of all the different bills that he puts into his wallet.

In UTXO-based blockchains like Bitcoin, for example, there's no notion of identity. There are only UTXOs or unspent coins designated to different wallet addresses. The critical point is that the Bitcoin protocol doesn't track users' balances but rather individual coins represented as UTXOs which are attributed to different addresses.

How Does the Account-Based Model Work?

The account-based model is the more popular blockchain bookkeeping method between the two. Initially popularized by Ethereum, the account model is used by many, if not most, blockchains today to record both transactions and state changes.

The bookkeeping in the account model works just like bank accounts, where money transfers are recorded as debits and credits on different users' accounts on the bank's ledger. For example, when Alice wants to send $10 to Bob, the bank credits or deducts $10 from Alice's account and debits or adds $10 to Bob's name in its ledger.

The same happens in account-based blockchains; only the ledger that records the users' balances is distributed among many entities (full nodes). The key point is that account-based blockchains don't track coins but instead balance changes on users' accounts. In this model, the notion of identity is present, and one user is typically associated with a single blockchain account or address.

Key Differences in UTXO vs. Account-based Blockchains

In examining the benefits and drawbacks of UTXO and account-based models, several key differences arise, highlighting the unique characteristics of each accounting system.

For instance, in the UTXO model, crypto wallets typically generate new addresses for every user transaction, making it more difficult for third parties to trace or link transactions to a specific individual. This characteristic provides a higher privacy level than the account model, where users typically interact with the blockchain through a single account with a transparent balance.

Additionally, the UTXO model naturally supports parallel transaction processing, which refers to the simultaneous processing of many blockchain transactions, allowing for increased efficiency and throughput. This is in contrast to account-based blockchains that process transactions sequentially or one transaction after another linearly.

Parallel transaction processing can be particularly beneficial in situations with a high volume of transactions, as it enables the network to accommodate more transactions per second and handle increasing demand. Additionally, it can contribute to faster transaction confirmation times, a more responsive and efficient network, and better resource utilization. That being said, achieving optimal parallel processing requires efficient consensus algorithms and effective resource management techniques, meaning that UTXO-based blockchains aren't necessarily more scalable than current account-based ones.

On the other hand, account-based blockchains are generally considered more programmable or better suited for smart contracts than UTXO-based blockchains. This is because account-based blockchains are stateful, which allows for more complex interactions between user accounts and smart contracts and makes it easier for developers to create programmable logic and build sophisticated decentralized applications. In other words, the account-based model is generally more straightforward for developers to work with because the transactions resemble direct transfers between accounts or function calls to smart contracts, which more closely mimics traditional programming paradigms.

Conclusion

In conclusion, the differences between UTXO and account-based blockchains stem from their distinct approaches to managing transactions and states. The UTXO model offers enhanced privacy and parallelism due to its structure, which focuses on tracking unspent outputs and allowing for simultaneous processing of unrelated transactions. On the other hand, the account-based model simplifies transactions by maintaining a global state of accounts and balances, making it more intuitive for developers and better suited for smart contracts and complex applications.

Ultimately, understanding the nuances between these models is crucial for developers, users, and stakeholders to make informed decisions when building or participating in blockchain ecosystems.

Movie

Do you prefer to watch a movie explaining the differences? Click !

here
Spiderchain