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
5
votes
2answers
214 views

Do UTXO's ever get consolidated to avoid complexitity?

In 'Mastering Bitcoin' (pg 130) it is explained that a transaction will require higher fees if it is complex. For example, if I collect bitcoin from 100 people to buy a single tent, then when those ...
0
votes
1answer
30 views

Can I receive detailed tx data via command line using only a lightclient?

I recently tried to sync the Bitcoin blockchain, but my laptop does not have enough space on it. I want to be able to analyze UTXOs and raw transaction data. Will a lightclient allow me to do this?
3
votes
1answer
70 views

Do confidential transactions produce an UTXO

There must be magical cryptographic reason why CT doesn't create an UTXO. If it did make an UTXO, it'd be trivial to calculate the input + output right?
2
votes
1answer
143 views

What happens to a node if .bitcoin/chainstate is corrupted?

I tried to search for answers to my questions, but didn't find any, but please forgive me if this is a duplicate question. Suppose somehow .bitcoin/chainstate gets corrupted, e.g., a UTXO is deleted. ...
2
votes
0answers
81 views

Is there a UTXO for IOTA? [closed]

How does the cryptocurrency IOTA keep record of the spent coins? Is there something similar to the UTXO where the unspent coins were recorded? And it somebody wants to spend a coin, do you have to ...
1
vote
2answers
88 views

How to cheaply melt many micro UTXOs?

I know this was probably brought up before but I cannot find any good resources on some potential, at least theoretical way of achieving this. So basically I have a lot of UTXOs whose value is ...
1
vote
0answers
49 views

What would UTXO consolidation look like in the public ledger with Schnorr signatures?

I am excited about the privacy and optimisations involved with moving from ECDSA to Schnorr signatures. One of the privacy improvements, as I understand it, is that you can aggregate signatures so ...
0
votes
1answer
53 views

Which values are GetValueIn() and GetValueOut() calculate?

In Transaction.cpp, there is a function CAmount CTransaction::GetValueOut() const. In Coins.cpp, there is a function CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const. My ...
0
votes
1answer
81 views

UTXO transaction consolidation?

As a relatively new user, I have only generated a handful of public addresses. Usually, to move to a newly discovered and preferred wallet. I’ve only recently learned that a single seed phrase can ...
0
votes
1answer
97 views

I seem to have too many unspent outputs for my given balance. What am I missing?

I have an address on the testnet. I started out with 1.3 btc. I then sent 0.5 btc to another address. My balance is now 0.8. OK, that makes sense. I expect now to have one UTXO which was the 0.8 in ...
2
votes
1answer
420 views

State of transaction and UTXO

What I have learned is that state is an abstract thing and is maintained by the node locally and the state of the current blockchain can be reached by starting all the way from the genesis block and ...
2
votes
2answers
155 views

If I reuse the same address can a previously used transaction be reused?

I was wondering, if I used an address adr0 to spend some coins in a transaction tx0 that give the coins to a different address adr1, and eventually, after some time, I receive some (completely ...
1
vote
0answers
78 views

Zcash T-address address wise UTXO transaction list both testnet and mainnet API [closed]

I need API for address wise UTXO transaction list for Zcash t-address for both testnet and mainnet.
0
votes
1answer
66 views

What does a bitcoin transaction contain?

I'm learning about basic transactions and know that a transaction should contain: i) Signature of the sender using some operator: sign(private key,message) ii) Receivers Public key (wallet address) ...
0
votes
1answer
50 views

How many change outputs are there in a Bitcoin transaction

I have been reading the following article: https://coinmetrics.io/difficulty-estimating-chain-transaction-volume/ It mainly discusses how unreliable transaction volume on a UTXO blockchain such as ...
3
votes
3answers
1k views

How does the wallet identify which UTXOs belong to a public address while creating a new transaction?

I am a beginner here. A Transaction output has a field for amount and a locking script but no direct field for public address for which the output is meant. When a new transaction is being created, ...
3
votes
1answer
292 views

Why does the order in which the transactions occur matter when we reconstruct ownership information?

I was wondering why the order in which the transactions occur matters when we reconstruct ownership information. Can't we just aggregate all the input and output for each account to calculate how much ...
1
vote
1answer
251 views

How can I get UTXO for a specific address?

Are there API's I can use to get this information?
1
vote
1answer
217 views

bitcoin chainstate database parsing in python giving wrong value

I am trying to decode chainstate db for a specific out index for a transaction in python just for learning. Transaction ID: 4d4a4c6ca4f3c91e69563199943336d3279fad71c9e8d9c1708ef9dc6ac16000 out index = ...
1
vote
1answer
61 views

Conflicting transaction info on Blockchain.info and Jaxx compared to other sources

I sent a batched transaction with 3 inputs pointing to the same output address. The receiver claims they only received 0.00042 BTC when they should have received a total of 0.00128615 BTC. She is ...
1
vote
1answer
375 views

utxo vs account-model [duplicate]

There are two possible models, the UTXO model and the account model. Each has advantages and disadvantages. Bitcoin chose the UTXO model. XRP and Ethereum for example use an account model. What are ...
5
votes
1answer
440 views

What are the standard formats of transaction outputs?

A transaction output can have the type Pay to public key hash, P2PKH, where the ScriptPubKey field has the format: 76 a9 14 <20-byte hash of pubkey> 88 ac Pay to script hash, P2SH, used for e.g. ...
0
votes
1answer
128 views

get the location of UTXO data

I need to find the location of the code which deals with UTXO, and then implement FIFO on UTXO storage. I aint able to find the location of UTXO code and also where it is stored.
4
votes
1answer
720 views

a few questions about how HD wallet works

I've read through HD wallet from various resources and have got the basic understanding about it, but am still confused by a few details 1) Each non-hardened public keys (thus addresses) can receive ...
0
votes
1answer
97 views

How are utxos associated with a particular address?

Is there a way to add or associate utxos with a particular address without creating a transaction?
0
votes
1answer
103 views

Editing the utxo database?

Is it possible to manually add utxos to the utxo database? Could this be done by editing the chainstate file?
0
votes
1answer
65 views

Is it possible to spend the unspent outputs of a burn address?

If a burn address is created without a private key to prevent access to the bitcoin there, is not possible to create a transaction which would spend the utxos since there is no private key to sign the ...
0
votes
1answer
250 views

Pycoin: How to sign SegWit transaction via Pycoin?

My target is to make transaction with unspent transaction outputs(UTXOS). The information of UTXOs is as follow. [ { "pt_idx": 0, "subaccount": 37, "ga_asset_id": 1, "value": "...
0
votes
1answer
60 views

Is it true that only UTXOs can be used as Transaction Inputs?

I was reading this GitHub book on Bitcoin They state that "True or False: Only UTXOs can be used as inputs to transactions." Is the answer, True because you can only spend what you have. Or False, ...
1
vote
1answer
403 views

how can i query utxo to bitcoind(using bitcoin-cli) with public-private key not wallet

i want make a transaction to send bitcoin to others. so i need utxo by someones' adfress. but bitcoin-cli listunspent command only allows address in wallet. is it any idea to query listunspent with ...
3
votes
1answer
89 views

Do you 'own' Bitcoins purchased via an exchange?

I have been told by some that bitcoin exchanges do NOT record BTC transactions by a buyer/seller on the blockchain, but rather hold them in their own name and ledger - eg, if I buy one BTC via an ...
0
votes
1answer
160 views

Double spending UTXOs

I know that the inputs for a transaction(which is not coinbase) are UTXOs. Are UTXOs kept track of by some servers and also the owner's wallet? If there are servers which keep track of UTXOs, is it ...
0
votes
1answer
793 views

what happens to UTXOs when a transaction output script is satisfied?

As per my understanding from the book "Mastering bitcoin", a transaction output contains three things Amount - Bitcoin Value in Satoshis Locking-Script-Size - Locking-Script length in bytes, to ...
2
votes
1answer
1k views

How can you consolidate your personal UTXO set? (different wallet answers welcomed)

With network fees so low at the moment, I've seen a lot of recommendations to take the opportunity to move funds to segwit addresses and consolidate your UTXO set. During peak congestion, many smaller ...
1
vote
1answer
361 views

How can I get address wise UTXO balance for Zcash t-address

I tried to create user specific account wise zcash t-address, got the following error zcash-cli getnewaddress "testaccount" error code: -11 error message: Accounts are unsupported Is it possible to ...
0
votes
1answer
326 views

How to get unspents for inputs using bitcoinjs-lib?

I would like my simple wallet app to automatically select UTXOs for inputs. I realize that I can't accomplish this with just bitcoinjs, but is there something I can add to it to keep track of unspents?...
0
votes
1answer
69 views

What are the mechanics of verifying that an output transaction is not spent?

I am trying to understand the mechanics of how a bitcoin transaction works. When the output gets consumed by a later transaction, who and how prevents this output from being consumed a second time? Do ...
0
votes
1answer
62 views

BTC not received after sending

I have a transaction sent from Coinbase on 12 Dec 2017. i can see it on the blockchain, fees taken but the rest is unspent. How can I force the transaction to complete. Why didn't it complete ...
5
votes
1answer
808 views

Will all UTXOs eventually be worth 1 Satoshi?

If I want to spend 0.4BTC and I only have a UTXO for 1.0BTC, I will send 0.4BTC to the seller's address and 0.6BTC to my address. The seller has one UTXO and I have the other. One UTXO has become two....
4
votes
1answer
335 views

What is the Big-O complexity to retrieve the balance for a user?

Here is the Q/A related to: How is a wallet's balance computed?. Based on this: [Q] What is the Big-O complexity to retrieve the balance for a user? Is it O(n), so basically do I have to iterate ...
0
votes
1answer
215 views

get utxo at a certain chain height

I have the reference client running with a complete transaction index. Is it possible to get all UTXO for a certain height of the chain either via bitcoin-cli or some other tool?
1
vote
2answers
51 views

what's CCoinsViewDB::GetHeadBlocks for?

I have google a lot, there exists little information, confused with the code comments Retrieve the range of blocks that may have been only partially written. If the database is in a consistent state,...
3
votes
2answers
189 views

Why do we refer to previous transactions in each transaction?

Isn't it enough to just have the Input Address, Output Address, Amount and Signature for each transaction?
1
vote
5answers
189 views

When you receive a BitCoin what do you actually get?

Say someone sends me 0.5 of a BTC to my desktop wallet, is it a digital file or lines of code that they send me which has monetary value? I'm very confused on what you actually RECEIVE with ...
0
votes
2answers
103 views

Does using different addresses affect subsequent transaction size, given the same number of inputs?

I'm quite confused about the input count that affect the transaction size, example: x1 = my receive btc address x2 = my another receive btc address x3 = my another receive btc address Scenario A ...
0
votes
2answers
525 views

Where to find UTXO Metadata API

I'm looking for an API which lets me query for UTXOs on the base of specific meta data, e.g: When was the transaction containing the UTXO issued? From which address? etc. I have found this question: ...
2
votes
1answer
97 views

How to distribute UTXOs in hard fork while preserving privacy?

Let us say I have a UTXO set S = {U1,U2, U3 ..., Uk} on a pre-fork bitcoin blockchain. How do I spend the previous UTXO S so that the new UTXO sets on both the chains are not linkable/tracable? Are ...
2
votes
1answer
576 views

How does one reference an unspent transaction output?

In a bitcoin transaction the previous unspent transaction outputs are referenced. How are these referenced? Do outputs have unique reference or maybe as unique transaction reference X output ...
3
votes
1answer
3k views

Do all Tx's have UTXO?

I am trying to understand how UTXO works. I came up with these charts https://statoshi.info/dashboard/db/unspent-transaction-output-set I don't understand why the 1st chart (total Tx's with unspent ...
2
votes
3answers
1k views

Litecoin litecore-lib receive UTXO and current balance

I have coded NodeJS script for bitcoin for send all balance from by address to some other one. Now I want to do this for the litecoin. For bitcoin I have used bitcore-lib and bitcore-explorers libs to ...