Questions tagged [utxo]

Unspent Transaction Outputs (UTXOs) are created by transactions and allow the owner of an associated address to spend a specific amount.

Filter by
Sorted by
Tagged with
2
votes
1answer
64 views

How is the balance of a Bitcoin address quickly calculated?

For what I understand, the balance of a Bitcoin address is the total sum of UTXOs of that address in the entire blockchain. The current size of the blockchain is around 350GB. How is the total sum of ...
3
votes
0answers
25 views

How to approach building a custom UTXO index on top of a full-node

I want to avoid physically importing addresses into a wallet. I want to write a UTXO indexing system on a per-address basis. I often wonder how a wallet can keep track of all of its addresses UTXOs, ...
3
votes
1answer
252 views

When does Bitcoin update the UTXO set?

I am kind of confused with something. I hope you can clarify it for me... Let's say I want to make a transaction. So my exchange wallet does that for me. The way it does this is it first grabs the ...
0
votes
1answer
32 views

Practical tips for validating raw transactions

I have a protocol that creates a raw signed transaction that is then broadcast to the network. The transaction aims to send X BTC to a single address Z. The transaction is created with the help of ...
1
vote
2answers
34 views

Difference between crypto coin vs crypto block?

I have several doubts about cryptocurrency when I started(bitcoin) reading about it. I google it around and it only added to more confusion. I am not able to understand the difference between a ...
1
vote
1answer
33 views

I somehow sent a transaction to my own wallet address

I wanted to make a transaction to a vendor but somehow I made it to my own address? It is yellow color and I put very very low fee. It is unconfirmed yet because of the fees. Should I just increase ...
1
vote
1answer
51 views

How would you create child pay for parent in bitcoind-cli

I have unconfirmed transactions in my bitcoind wallet. Some of the are mine and some are incoming third party transactions. I want to speed up their confirmation by creating CHPFP transaction - ...
1
vote
2answers
37 views

How to use UTXO of xpub derived addresses?

I'm new in Bitcoin, this is something I'm confused with. If we are deriving children, i.e. public keys, from xpub, without private keys, for the purpose of receiving outputs, how are we able to spend ...
0
votes
1answer
45 views

how does bitcoin solve the same chain replay attack?

Let's say I send 10BTC to Bob. I have 30 BTC. So after transferring, I should have 20. Now, after I transfered 10, transaction can be copied and broadcasted to the network again by Bob(he might have ...
2
votes
1answer
62 views

how does node create UTXO from blockchain for the first time?

Let's say I am a new node. I try to synch with the full node to grab the whole blockchain. Now, I synced with it .It's time for my node to create UTXO database .. How does it do this exactly so that ...
1
vote
1answer
26 views

How is the UTXOs of each partially-spent TxIn determined?

My current understanding of a transaction is as follows: a transaction (Tx) can have multiple inputs (which are previous unspent transactions = UTXOs), let's call them the TxIn a Tx can have multiple ...
0
votes
2answers
39 views

How to Create or Generate a New UTXO in Bitcoin Core?

I know how to use Console in Bitcoin Core but not that expert. I would like to ask is there possible for me to generate or create a new UTXO in Bitcoin Core? All I have with me are the list of TxID ...
1
vote
3answers
79 views

Best way to find list of UTXO related to xpub

Apparently the way to find a list of UTXO related to an xpub is to derive all addresses from the master private key and query a node with each and every one of them. It is possible to generate ...
0
votes
1answer
57 views

How to create a transaction input from tx id of UTXO?

I'm in the midst of working this github --> https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2sh_transaction.py Sorry as I'm not that good in this. I would like to ask the ...
0
votes
1answer
40 views

Private Key leakage due to reusing same address, how to prevent?

1 What precisely is the meaning of "reusing"? Is it receiving multiple times coins to the same btc address? Or is it also about sending coins? 2 How can people avoid this leaking of ...
1
vote
2answers
144 views

Do you sign only the previous output of transaction?

I need to confirm that I understand how transactions work in the Bitcoin network. Ok, so: Alice is a network node. Alice wants to send bitcoins to someone in the network. Alice is creating a ...
2
votes
2answers
52 views

How do Bitcoin balances work when an address is controlled by multiple parties together?

user1, pubkey1, 1.1 BTC user2, pubkey2, 1.2 BTC user3, pubkey3, 1.3 BTC user4, pubkey4, 1.4 BTC user4 sends 0.4 BTC to a 2-of-3 multi-sig account controlled by user1, user2 and user3 using P2SH. The ...
13
votes
6answers
4k views

Why is there “Change” in Bitcoins?

I have read about a change address and wondered why there even is the concept of change? Let's say I received 1 BTC from some person A and I want to send 0.4 BTC to another person B, afterwards. From ...
0
votes
0answers
24 views

What happens if 2 transaction spend to the same output? [duplicate]

I'm looking though the blockchain, and I've found 2 transactions in different blocks, which have the same hash: block 91812: "result": { "hash": "...
0
votes
1answer
17 views

Can we determine which one of the referenced outputs corresponds to a cashback transaction in BTC transaction scripts?

let me quickly elaborate the question. The structure of a BTC transaction script looks somewhat like the following example "...
1
vote
1answer
175 views

Is sharing a signed input safe?

Is it possible to decode the private key from a signed input? For example: From this signed input hex... ...
0
votes
2answers
29 views

what is referred as coin in bitcoin network?

I gathered information about bitcoin from various resources. All those resources said that when a transaction is done, the transaction get added to a block. So when Alice send 2 btc to Bob, network ...
0
votes
1answer
64 views

“scriptSig” for P2SH-P2WPKH

I'm not sure I understand the fields of my input. I have a P2SH address (Testnet). This is the input of my transaction: "vin": [ { "txid": "...
2
votes
1answer
59 views

What is the link between address and use of the UTXO?

I state that I'm still a beginner. I need some clarification. I am using the Testnet. This is the information regarding the address I used to receive funds from a Faucet bitcoin-cli validateaddress ...
1
vote
1answer
48 views

How to interpret the Descriptor field?

These are my UTXO in Tesnet environment: { "txid": "93ae7787fe8203e9f13534205ca0310baf8bf5e2b55b2faa1f8b09134f475208", "vout": 1, "address": "2N4VywDy3DnkCmCM8yvfMSFHiEt2ePxzLXu", "...
7
votes
1answer
468 views

Why is there no such thing as a redirected, forged, or fake transaction?

In the past, we had numerous questions about "fake" or "forged" transactions. Such transactions could supposedly be created even without holding any bitcoins, yet would end up in the mempool or even ...
3
votes
1answer
91 views

what is meant by DEFAULT_ANCESTOR_LIMIT in child pay for parent?

Why is 25 the max parents a child can rescue in a child pay for parent? I don't think I understand what DEFAULT_ANCESTOR_LIMIT = 25 means. Does that also mean that the child transaction has 25 ...
1
vote
0answers
42 views

What would a bitcoin quantum resistant address look like? [duplicate]

In an hypothetical future where a quantum computer is able to break the cryptography protecting the bitcoin private key, one of the solution would be to move our coins to quantum safe resistant ...
0
votes
1answer
82 views

P2SH-P2WPKH stack

I'm studying P2SH-P2WPKH and when I create the signed transaction I can see this stack (using btcdeb) script | ...
0
votes
1answer
63 views

How are UTXOs handled in Ledger Live?

Take this Bitcoin transaction: https://www.blockchain.com/en/btc/tx/bad181b4bf50342e5226982ac5031d8b9ce670053d3b5c7502b0ff349a5f2838 In my Ledger Live, I can see that 0.3881168 BTC left the wallet: ...
2
votes
1answer
176 views

How to query all utxos of an address from a full node?

I am new in the blockchain field, and I am trying to build my own block explorer from scratch to really learn about Bitcoin. I am currently running a full node in a raspberry pi, and I have already ...
0
votes
1answer
38 views

Bitcoin UTXO anatomy

I've been using a command line tool to fetch spendables from a Bitcoin address. Given an address the following command (source) ouptuts UTXOs the address can spend. tx -i ...
0
votes
0answers
47 views

Optimally determine which transaction spent a transaction output

As it has been discussed before, it is very inneficient to find which transaction has spent a transaction output using bitcoin core alone. I found a way of doing it with an electrumx server running on ...
1
vote
2answers
131 views

Bitcoin UTXO discrepancy in calculation

I'm trying to understand the following two sites that display UTXO information. If I can figure out the method, that would be a bonus for this question but if I can't can someone explain why the two ...
1
vote
3answers
58 views

How are UTXO forwarded to other addresses?

this is a pretty general, conceptual question. I feel I do not yet completely understand the blockchain transaction dynamics. Let's say, we have A, B and C trading on the Blockchain: A has ...
0
votes
0answers
34 views

Is there a way to know at any point in time T how many BTC exist that were bought at time t<T?

What I would like to find out is whether for a specific time in the past, we can know the number of BTC that exist today and were bought at this time. The discrete time can be the time of block ...
1
vote
1answer
114 views

Why Full Node stores whole blockchain instead of only the UTXO set?

So I have started learning bitcoin recently (from Bitcoin and Cryptocurrency course @ Coursera). And I just learnt that there are "Full-Validating Note" out there that are: Permanently connected ...
0
votes
1answer
293 views

How to quickly get the balance of any bitcoin address? (with no third-party API)

As some people have mentioned (eg. here), the only way to get the balance of an address in bitcoin core was to import it as a watch-only address and rescan the blockchain. Starting with bitcoin core ...
1
vote
4answers
180 views

How bitcoin application in production retrive UTXO's

AFIK, UTXO of an address cannot be retrieved using bitcoin-core, without importing the address in the wallet. How are application in production able to get UTXO ? Does all the application use ...
0
votes
0answers
33 views

if bitcoin miner(s) changed the UTXO set would the bitcoin nodes reject the blocks?

if so, would this cause a Fork? or what would happen?
-2
votes
1answer
25 views

Can the network confirm a utxo is from a wallet on a verified list [closed]

Given a business requirement of a verified list of wallets that the network has agreed on. can the network confirm a new type of utxo is from a wallet on this list and reject the new type of utxo if ...
0
votes
1answer
88 views

How long does it take to find a UTXO in UTXOs set?

to validate a TX, the miner or full node should first find the UTXO. How long does it take to find a specific UTXO in a list of UTXOs set? Right now, there are around 100 million of UTXOs. Then, how ...
0
votes
2answers
92 views

How can I consume my whole bitcoin balance in a single transction? Is it possible to use multiples UTXOs in a single transaction?

I want to make use of a single bitcoin address for payment. I'm using bitcoinjs library's transction builder for creating my own transaction. Can anyone help with a proper code to use multiple UTXO's ...
2
votes
2answers
337 views

Other database besides UTXO?

In this post it is explained that the UTXO are removed after they are spent. This makes sense because they are not "unspent" anymore. But don't all UTXOs have a reference/connection to their ...
3
votes
1answer
116 views

Fundamentals: Addresses don't hold coins, wallets do?

In the beginning it was my understanding that: Every address has a private key Every address has a balance Every address may send and receive coins. This is simple. But now I am using more proper ...
1
vote
3answers
52 views

How is the monetary part of bitcoin stored?

How is the monetary aspect of a bitcoin stored? I understand that the blockchain is a set of records documenting transactions. I've also seen that blockchains in general can store arbitrary ...
0
votes
2answers
164 views

How Bitcoin dose find and verify UTXO ? is this efficient?

If Bitcoin sees all blocks, it will be very slow based on chain length and block size but, it can certainly verify incoming transactions. I know that blockchain is never modified any previous block. ...
0
votes
0answers
25 views

Some weird BTC transaction just happened to my wallet, sub wallet doesn't send back the BTC to my wallet [duplicate]

So my wallet address is 3BA1kdxSyFLADWJHDeaFb2xap4QASVvXto First I sent 0.00010000BTC to 1FjpQCZvqQxpGjvdU8AcxVyxXgJqY17Uzw (https://btc.com/...
1
vote
0answers
43 views

How many TXO have been created in total?

I've seen some statistical data about the Bitcoin UTXO number (around 61M currently). I was wondering how many TXOs (including spent and unspent) there were in the complete history of Bitcoin?
2
votes
1answer
67 views

How to prevent double spending Bitcoins?

If I create a transaction, my node will check my UTXO's and if i have enough BTC to do this transaction it will be mined. So let's say I want to spend 12 BTC to Anna. The System will check if i ...

1
2 3 4 5