If you want to understand BRC-20 in depth, learn UTXO first
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!

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Exchanges play a vital role in today's cryptocurrency market. They are not only platforms for investors to trade, but also important sources of market liquidity and price discovery. The world's largest virtual currency exchanges rank among the top ten, and these exchanges are not only far ahead in trading volume, but also have their own advantages in user experience, security and innovative services. Exchanges that top the list usually have a large user base and extensive market influence, and their trading volume and asset types are often difficult to reach by other exchanges.

The time for recharge of digital currency varies depending on the method: 1. Bank transfer usually takes 1-3 working days; 2. Recharge of credit cards or third-party payment platforms within a few minutes to a few hours; 3. The time for recharge of digital currency transfer is usually 10 minutes to 1 hour based on the blockchain confirmation time, but it may be delayed due to factors such as network congestion.

Litecoin (LTC) price plummeted to $65 in early April, down nearly 7.5% in a week, echoing the plunge in the wider cryptocurrency market. The market crash caused billions of dollars to evaporate market value, Bitcoin (BTC) fell below $75,000, and altcoins generally fell. Macro factors such as rising U.S. Treasury yields and expected interest rates appear to intensify risk aversion in global markets. In addition, the large outflow of funds from Bitcoin spot ETFs further hits the confidence of retail investors and institutional investors. Against this backdrop, Litecoin is once again facing its long-term resistance level - the 200-week exponential moving average (EMA). The EMA had suppressed LTC prices in July 2023, when the price was close to $88. Historically, LTC and the

Quantum Chain (Qtum) is an open source decentralized smart contract platform and value transmission protocol. 1. Technical features: BIP-compatible POS smart contract platform, combining the advantages of Bitcoin and Ethereum, introduces off-chain factors and enhances the flexibility of consensus mechanisms. 2. Design principle: realize on-chain and off-chain data interaction through main control contracts, be compatible with different blockchain technologies, flexible consensus mechanisms, and consider industry compliance. 3. Team and Development: An international team led by Shuai Chu, 80% of the quantum coins are used in the community, and 20% rewards the team and investors. Quantum chains are traded on Binance, Gate.io, OKX, Bithumb and Matcha exchanges.

Decentralized social media platform Tox has reached a strategic partnership with OmniLabs, a leader in artificial intelligence infrastructure solutions, to integrate artificial intelligence capabilities into the Web3 ecosystem. This partnership is published by Tox's official X account and aims to build a fairer and smarter online environment. OmniLabs is known for its intelligent autonomous systems, with its AI-as-a-service (AIaaS) capability supporting numerous DeFi and NFT protocols. Its infrastructure uses AI agents for real-time decision-making, automated processes and in-depth data analysis, aiming to seamlessly integrate into the decentralized ecosystem to empower the blockchain platform. The collaboration with Tox will make OmniLabs' AI tools more extensive, by integrating them into decentralized social networks,

The future of Bitcoin: a medium of exchange or a store of value? The debate continues to ferment in the core Bitcoin community, and the latest remarks by Twitter co-founder and BlockInc. CEO Jack Dorsey have sparked new discussions. Is Bitcoin a payment tool, a storage means of value, or both? This issue has always been the focus of fierce debate among industry insiders. Dorsey's recent remarks have ignited the debate again. Dispute about the use of Bitcoin Dorsey believes that if Bitcoin is stored as a store of value only, it will fail. He pointed out in a recent podcast that Bitcoin’s success lies in its payment capabilities. This view is in contrast to the current major narrative of Bitcoin. Many people, including Wink

The steps to register for Bitget in 2025 include: 1. Prepare a valid email or mobile phone number and a stable network; 2. Visit the Bitget official website; 3. Enter the registration page; 4. Select the registration method; 5. Fill in the registration information; 6. Agree to the user agreement; 7. Complete verification; 8. Obtain and fill in the verification code; 9. Complete registration. After registering, it is recommended to log in to the account, perform KYC identity verification, and set up security measures to ensure the security of the account.

The most worth investing in 2025: Cloud mining strategy without eyeing the market If you want to invest in cryptocurrencies in 2025 and don’t want to pay attention to market fluctuations all the time, then cloud mining may be your ideal choice. Cloud mining can easily generate Bitcoin and other digital currencies without expensive mining machines and complex settings. A number of new cloud mining platforms have emerged in 2025, making it easier than ever to get started. Whether it is a novice novices or investors who pursue passive income, the following 11 platforms are worth paying attention to. Hashbeat app: a regulated crypto cloud mining platform that provides free Bitcoin mining rewards, daily payments. If you want to invest in low-risk, high-security, stable returns in cryptocurrency in 2025, Hashbeat app