The recently popular BRC-20 Token is based on Bitcoin, but the Bitcoin blockchain cannot impose rules on it. The cost of making a BRC-20 Token lies in adding the file to the blockchain and the future movement of the UTXO associated with the Token.
Since UTXO is so important, today we will briefly introduce UTXO.
01. What is UTXO
In the current blockchain project, there are two main ways to save records, One is the account /Balance model, one is UTXO model. Bitcoin adopts the UTXO model, while Ethereum and others adopt the account/balance model.

unspent output, can be simply understood as return There are no spent receipts. For example, Han Meimei received a Bitcoin, but she did not use it. This Bitcoin is a UTXO to her.
02. Account/balance model and UTXO model
Account/balance model is very common in life, such as our bank account and WeChat account, all based on account/ Balance model.The balance in the account exists as a whole. How much money is in Li Lei's account? You can tell by looking at the balance. When a transaction occurs, it is the balance that changes. For example, on Valentine's Day, Li Lei transfers 520 yuan to Han Meimei via WeChat. Li Lei's WeChat account balance will decrease by 520 yuan, while Han Meimei's account balance will increase by 520 yuan.
The UTXO model is different from the account model.How many Bitcoins Li Lei has can only be known by summing up all the UTXOs of his Bitcoin address. To put it simply, the UTXO model is like the wallet we use, and each banknote or coin in the wallet is a separate UTXO. Therefore, it is not clear at a glance how much money is in the wallet. All banknotes and coin denominations need to be compared. It can be found by adding.
Every payment or receipt is consumed or received in UTXO units. For example, when we use 10 yuan to buy 5 yuan breakfast, the 10 yuan will be paid to the seller as a UTXO, and the seller will give you change. Let’s illustrate with an example. On Valentine's Day, Li Lei bought flowers for Han Meimei, the price was 520 yuan. To pay in cash, he took out 6 hundred-yuan bills (equivalent to 6 100-yuan UTXOs) and gave them to the seller. The seller needed to give Li Lei 80 yuan in change (one each of 50-yuan, 20-yuan and 10-yuan bills). It is obvious in this process that Li Lei spent 600 yuan to buy flowers and received 80 yuan in change, and the seller sold the flowers and received 520 yuan. From the perspective of UTXO, Li Lei spent 6 UTXO (6 pieces worth 100 yuan) and got 3 UTXO (3 pieces in change); the seller got 6 UTXO and spent 3 UTXO in change. If this transaction is completed with Bitcoin, the process will be slightly different. Suppose Li Lei uses 6 UTXOs of 1 BTC to pay the seller 5.2 BTC. In the end, the seller getsa value of 5.2 BTC. UTXO, The change given to Li Lei is a UTXO worth 0.8 BTC. In other words, 6 UTXOs were "destroyed" and turned into two new UTXO. (The reason for the difference between the two is that the types of banknote denominations are limited, while Bitcoin is not subject to this restriction). If the show of affection between Li Lei and Han Meimei takes place on the Bitcoin network, what is the transfer process?
Li Lei mined and received 12.5 Bitcoins as a reward from the system, so there was a UTXO of 12.5 BTC on Li Lei’s Bitcoin address.
Li Lei wants to transfer 5.2BTC to Han Meimei, and the 12.5BTC UTXO will be spent as a whole, of which 5.2BTC will be transferred to Han Meimei, and the remaining 7.3BTC will be given to himself in change (for the convenience of discussion, I will ignore it here Mining fees). In other words, 12.5 BTC previously existed in the form of a UTXO. During the transfer, this UTXO was "destroyed" and no longer existed. It became two new UTXOs: one belonged to Han Meimei, and the value of this UTXO 5.2BTC, the other one belongs to Li Lei, this UTXO is worth 7.3BTC, this is the change given to Li Lei.

03. Summary
The core design idea of UTXO is: it records transaction events but not the final status. To calculate how many Bitcoins a user has, it is necessary to sum up all the UTXOs in his wallet, and the result is the number of coins he holds. The UTXO model uses UTXO as the unit when transferring transactions, which means that when making a payment, an integer multiple of UTXO is called, such as 1 UTXO, 3 UTXO, and there is no such thing as 0.5 UTXO.
Bitcoin’s General transactions: call one UTXO to pay other people, and Collection transactions: call multiple UTXOs to pay other people.
Can you name other types of transactions?
The above is the detailed content of If you want to understand BRC-20 in depth, learn UTXO first. For more information, please follow other related articles on the PHP Chinese website!

最近大热的BRC-20 Token是基于比特币,但比特币区块链无法对其进行规则约束。制造BRC-20 Token的成本在于将文件添加到区块链中,以及未来与Token关联的UTXO的移动。 既然UTXO这么重要,今天我们就来简单介绍一下U…

去中心化网络或 Web 3.0 加密货币是推动互联网下一次迭代的数字资产。它们基于区块链技术。与 Web 2.0 的集中式平台和服务相比,Web 3.0 旨在构建一个不太集中、更加透明且以用户为中心的互联网。Web 3.0 加密货币…

目前,一枚比特币价值近 22 万人民币。对于刚入圈的新人来说,肯定很关心比特币的安全问题。 那么,比特币安全吗?换句话说, 钱包里的比特币,容易被黑客盗走吗? 01. 私钥、公钥、地址就像银行取款、网银转账需…

在快速发展的加密货币领域,加密货币开发服务领域充满了新的机会。随着加密货币的采用不断增长,对创新和强大的货币开发解决方案的需求也在不断增长。从创造新币到增强现有币,开发商、企业家和企业都面临着广泛的…

在加密世界里,钱包地址就像 “银行卡账号”、“收件地址”一样重要,任何操作都离不开它,随着Ordinals 协议的诞生,推动了比特币基于隔离见证、Taproot升级的采用,这让很多人第一次使用“bc1p”等特殊抬头的地…

随着主要Meme币的飙升,以下是一些可能是现在购买的最佳加密货币Meme币的较小替代品。 随着比特币(BTC)突破7万美元,并瞄准重新测试上周创下的纪录高点,主要Meme币继续暴涨,但随着它们的估值变得越来越庞大,…

持续的加密货币上涨主要是由比特币减半带来的兴奋推动的,比特币已经飙升至 65,000 美元以上并达到历史新高,加密货币市场的传统通配符——模因币——也几乎没有被排除在外。 事实上,过去 7 天内,多个著名的 mem…

通过钱包转账 ETH 或是ERC一20 Token时,我们知道这个转账需要付手续费。那么,转账的手续费是怎么算的呢? 如果转账的同时还去“刻字”,是不是需要收取更高的手续费呢?今天,大白就给大家聊聊 以太坊的 Gas 机…

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools
