---
title: "Discussion on \"Simulating UTXOs on Algorand\" | Hashnode"
description: "Discussion on \"Simulating UTXOs on Algorand\". Introduction\nThere are two main accounting models used in blockchains: the UTXO model and the account model.\nThe former is used by Bitcoin and Cardano; the latter is used by Ethereum, Algorand, and most other blockchains.\nLet's see if we can use Pyth..."
url: "https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Simulating UTXOs on Algorand](https://alexandercodes.hashnode.dev/simulating-utxos-on-algorand?utm_source=hashnode&utm_medium=feed)

Introduction There are two main accounting models used in blockchains: the UTXO model and the account model. The former is used by Bitcoin and Cardano; the latter is used by Ethereum, Algorand, and most other blockchains. Let's see if we can use Pyth...

Apr 20, 2024 · 8 min read · alexandercodes.hashnode.dev  
Read the article

-   [#algorand](https://hashnode.com/tag/algorand)
-   [#utxo](https://hashnode.com/tag/utxo)
-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Alexander Codes](https://hashnode.com/@alexandercodes)

@alexandercodes

  
[View profile](https://hashnode.com/@alexandercodes)

Data Engineer

## Responses 2

Markdown supported · ⌘↵ to post

[BRITANY PEDDY](https://hashnode.com/@peddybrit)

[May 14, 2024](https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778/comment/6642c3940f727c30cb3fe525)

TROPICAL DELIGHT RECOVERY IS THE ONLY VERIFIED LICENSE COMPANY.

Are you looking for a way to recover cryptocurrency you misplaced or had stolen? I'm pleased to inform that Tropical Delight Recovery Hacker has resolved the issue that nearly caused my house to fall since I spent the monies my spouse wanted to utilise to start a business. I lost $1.4 million in bitcoin and etherium to these scammers. They excel at what they do and are the leading certified cryptocurrency recovery company. They can be reached instantly at: @ tropicaldelightrecoveryhacker on Telegram and @ tropicaldelightrecoveryhacker.93 on Signal. The email address is TropicalDelightRecoveryHacker @ out look .com.

[Kardo Locksmith](https://hashnode.com/@kardolocksmith)

[May 1, 2024](https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778/comment/6631c83554b2a04097fa1533)

good

[Eldar Ahmadov](https://hashnode.com/@EldarAhmadov)

[Apr 20, 2024](https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778/comment/6623a1b384e1bf95d4c565b6)

Heard about UTXOs few times, never really bothered to understand what they are, thanks for a clear explanation, Alex. Basically, they're somewhat similar to double entry in bookkeeping.

As usual, got a question regarding the example (can't help it ) :))

How would an account get hold of output Utxos, assuming the account wants to spend it later? \_mint\_utxo returns an asset\_id, but in process\_transaction method, those newly minted asset ids are not returned?

[Eldar Ahmadov](https://hashnode.com/@EldarAhmadov)

[Apr 21, 2024](https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778/comment/6623a1b384e1bf95d4c565b6#reply-6624d41c45769a711b7b5580)

Ok, understood, although it's a bit strange, since you're not mutating `tx_out` in this case. Anyway, massive thanks again, and looking forward to the next one! I'm learning a lot from these!

[Alexander Codes](https://hashnode.com/@alexandercodes)

[Alexander Codes](https://hashnode.com/@alexandercodes)

[Apr 21, 2024](https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778/comment/6623a1b384e1bf95d4c565b6#reply-6624f91e6de2232e1f3ff775)

[Eldar Ahmadov](https://hashnode.com/@EldarAhmadov) Agreed, and it's also a bit weird that you can't iterate over a mutable data structure directly.

I would imagine that might change in future releases.

In any case... I do what the compiler tells me to do :D

[Eldar Ahmadov](https://hashnode.com/@EldarAhmadov)

[Apr 21, 2024](https://hashnode.com/posts/simulating-utxos-on-algorand/6623750748b70965dd2b5778/comment/6623a1b384e1bf95d4c565b6#reply-6624fb419d35ae7088fd9669)

We all do :) Although sometimes I feel like the compiler ignores my comments :)))

[Alexander Codes](https://hashnode.com/@alexandercodes)
