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
0
votes
0answers
14 views

Don't know how to sign for this kind of scriptPubKey [closed]

I send a tx to my btc node but catch this error message,I found blow code throw this exception transaction.addSignedInput(outPoint, utxo.getScript(), ecKey, Transaction.SigHash.ALL, true); and the ...
0
votes
0answers
22 views

Had a question on using on-Chain Data(Glassnode) to measure Unrealised/Realised profit and loss of BTC holders - isn't on-chain data not complete?

https://twitter.com/Negentropic_/status/1408436526262988801 The link above shows this tweet and pic: Isn't on-chain data not the full universe of transactions? for eg. Example 1: we have 10 users ...
2
votes
1answer
40 views

Are a new set of keys created for each UTXO, or can multiple UTXOs be locked by the same PubKey?

I understand that each transaction, new pairs of keys are generated, usually derived from a master key say in an HD wallet. If your change for a transaction or received BTC Is in multiple UTXOs, are ...
0
votes
0answers
31 views

Cannot unserialize chainstate transaction outputs after de-obfuscation

I was able to read chainstate database. Getting the key and de-obfuscating to get a valid last block. However, when it comes to transactions that follow after that, I cannot de-serialize them no ...
0
votes
0answers
54 views

Use wallet db for locked UTXOs in Bitcoin Core

Related question: Why are UTXO locks stored in memory only? Sorry this maybe a dumb question for people good with using database in C++ however I am not able to understand what exactly is going wrong ...
1
vote
1answer
72 views

Why are UTXO locks stored in memory only?

Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list is always cleared (by virtue of process exit) when a node stops or fails. https://bitcoincore.org/en/...
1
vote
2answers
80 views

Is it possible to assign a single “from” and a single “to” address to Bitcoin transactions?

I am working on a project where we need to get the "from" and "to" address for every transaction across a number of cryptocurrencies. In account-based currencies, this is pretty ...
3
votes
1answer
57 views

Are UTXOs signed with a private key?

Are UTXOs signed by a private key? I'm trying to understand exactly which parts of Bitcoin use public and private keys. You need a private key in order to generate transaction output, and to create a ...
0
votes
0answers
19 views

TX Validation: Can a miner choose specific tx to validate from mempool? [duplicate]

I have made two TXs few days back and they remain unconfirmed so far. Can I be a bitcoin miner and validate them myself? And what happens if it remains as it is? There are some big amount of utxo ...
2
votes
3answers
189 views

UTXO Model and Trans Fee / Kb Clarification

I have been working on understanding the inputs/outputs and transaction details as according to the UTXO model which is discussed in this question and also thinking about how it relates to transaction ...
1
vote
2answers
446 views

Confused about UTXO management and consolidation

I have a few questions regarding utxo management and consolidation. I know that the more UTXO's you have, the heavier your transaction will be, the more fees you'll have to pay. The things I don't ...
0
votes
0answers
21 views

How do I view the list of all existing Unspent Transaction Outputs, not just for my wallet, with Bitcoin Core utilities or any other software? [duplicate]

I'm preparing data for a research/analysis, and I'm a bit new to bitcoin-cli. I need to obtain data for the chart like this: https://www.blockchain.com/charts/utxo-count , with only difference that it ...
1
vote
1answer
39 views

How does a miner verify a transaction which is spending an output of another transaction in the same block?

It is mentioned in this post that: If all validation of all transactions in a block succeeds, the consumed inputs are removed from the database, and all outputs of those transactions added as fresh ...
1
vote
1answer
59 views

Are unspent UTXO's on Bitcoin from before the AUG 2017 BCH fork at risk to a replay attack?

Is it true that any UTXO's that are unspent prefork of BCH AUG 2017, has a risk of a replay attack? Say I have 1 BTC in my wallet which has never moved since 2016. Now I load that private key into BCH ...
0
votes
1answer
40 views

What were some discussed and current potential issues with pre-forked Bitcoin coins from August 2017 that have never moved since then?

I was speaking to a friend that mentioned that there were issues with pre-forked Bitcoin coins from Aug 2017 that never moved. He wouldn't tell me exactly what the potential issue was, but what were ...
1
vote
1answer
48 views

How does a full-node index watch-only addresses?

I can import watch-only addresses into my full-node's wallet. I can start querying their utxos from that point onward. Where are watch-only addresses stored and how does my node keep index of their ...
0
votes
1answer
158 views

Comparing UTXO transactions with Accounts transactions

I have seen few websites that compare number of transactions and fees between Bitcoin and Ethereum. Examples: https://www.flippening.watch/ and https://cryptofees.info/ What does the high number of ...
2
votes
2answers
119 views

What exactly is the “vout” field?

This is driving me nuts. Through trial-and-error, asking numerous people and attempting to read endless articles and manuals, I've come to the conclusion that the "transactions" listed by ...
5
votes
1answer
165 views

When the UTXO in the cache is full, what strategy is used to replace one UTXO with another in the cache?

The UTXO set is stored on the disk, but some UTXOs are also stored in the cache. When validating a transaction, you need to query the UTXO pointed to by the input of the transaction. First, you go to ...
0
votes
0answers
28 views

Signing transaction for later use

If I have a segwit UTXO with for example 10 BTC , can I make some raw transactions ready to get broadcasted?
4
votes
1answer
115 views

What does the index of an UTXO stand for?

For example, here is the output of an API I hit with one of my testnet UTXOs. What is the meaning of the index field in this context ? "utxo":[ { "block_id":1899516, ...
2
votes
1answer
184 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
44 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
454 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
50 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
197 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
48 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
390 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
127 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 ...
1
vote
1answer
107 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
112 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 ...
2
votes
1answer
90 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
145 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
218 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 ...
1
vote
1answer
192 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
56 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
198 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
56 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 ...
14
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
1answer
31 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
177 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
39 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
187 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
76 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
66 views

How to interpret the Descriptor field?

These are my UTXO in Tesnet environment: { "txid": "93ae7787fe8203e9f13534205ca0310baf8bf5e2b55b2faa1f8b09134f475208", "vout": 1, "address": "2N4VywDy3DnkCmCM8yvfMSFHiEt2ePxzLXu", "...
7
votes
1answer
554 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
164 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
44 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
138 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
183 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: ...

1
2 3 4 5