Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [utxo]

Unspent transaction outputs are created by transactions and allow the owner of an associated address to spent a specific amount.

0
votes
1answer
39 views

Signing a blank input?

Is it possible to include a blank input in a transaction? For example, a blank input could be used to guarantee a particular output was included in a transaction, using SIGHASH_SINGLE | ANYONECANPAY ...
0
votes
1answer
22 views

Is SIGHASH_NONE encompassing of other signature types?

Say I am building a transaction in private: Input 1 is signed with SIGHASH_SINGLE ( | SIGHASH_ANYONECANPAY) Input 2 is signed with SIGHASH_NONE | SIGHASH_ANYONECANPAY SIGHASH_NONE implies that ...
0
votes
1answer
37 views

Why is there sometimes no output that sends funds back to the sender's address?

'A' has one bitcoin. 'A' tries to send a 0.5 bit coin to 'B'. Two utxo are created. First, "utxo" sends "B" 0.5 bitcoin. Second, "utxo" where "A" remits remaining bitcoins to "A" except for 0.5 ...
0
votes
2answers
40 views

Transactions with multiple input UTXOs and multiple output UTXOs

Suppose a transaction t has 5 input UTXOs each worth 1 BTC, each unlocked by a different sending address Ai. The outputs of that transaction are 10 UTXOs of 0.5BTC each, each locked by a different ...
0
votes
0answers
293 views

Uneconomical UTXO requested

I'm using btc.com wallet and i want send 0.001 btc to another address but i'm facing with this error: Uneconomical UTXO requested [type: 1 (limit 6831), txOut.val: 5897, required: 98140] what does it ...
4
votes
1answer
85 views

Are all UTXOs locked by an address spent in a transaction?

Imagine I have 2 UTXOs locked by my address, each of which allows me to spend 5 bitcoins. If I subsequently want to send just 2 bitcoins to someone else, will both UTXOs be used as inputs in the ...
0
votes
0answers
22 views

Uniquely identifying a UTXO

I see two ways: Txid + index Txid + script hash Pros of the txid + index: Simple and short Cons of txid + index: It relies on array iteration being deterministic and all third party ...
0
votes
0answers
14 views

Swift implementation of bitcoin transaction creation

Is there a well known and widely used Swift implementation for creating raw Bitcoin transactions and getting their hash (SegWit and Non-SegWit) of signing? If not, is there a reference document that ...
0
votes
1answer
36 views

Spending UTXO from same block

Block 546 is the first time a (actually two) transaction spends the UTXO of a transaction from the same block. Is the order important? (The transaction that generates the UTXO has to appear before in ...
1
vote
2answers
88 views

If I was developing a Bitcoin wallet, should I support both legacy and compatibility addresses?

To receive funds, I was thinking of giving a user the option of displaying two QR codes: Legacy - p2phk e.g. 1AKDDsfTh8uY4X3ppy1m7jw1fVMBSMkzjP Compatibility - p2sh(p2wpkh) e.g. ...
0
votes
1answer
40 views

Use UTXOs before transaction is signed/broadcasted

Suppose I have an address with a single UTXO. I want to create 100 transactions and sign/broadcast them all at once. Could I do the following: Create a transaction by hand (where change funds are ...
0
votes
0answers
14 views

How to create an application which constructs a transaction using `bcoin` (javascript)?

I am new to development. I am working on a project and I am trying to use bcoin. I want to create an application which has a UI, where the user will be asked to enter Destination address and amount. ...
0
votes
1answer
27 views

Question about UTXO and indivisibility

I'm reading about the concept of UTXO. Everywhere I read, it says that a UTXO in an account is indivisible. One analogy said: "It's as if you wanted to make a $5 purchase with a $10 bill. You wouldn't ...
1
vote
0answers
19 views

Are there any other balance management systems other than UTXOs and Account Based used by blockchains today?

To know how much balance a user has on the bitcoin blockchain you just need to look at their UTXOs. To do the same in Ethereum you just look at their accounts. Are there any other systems used by ...
0
votes
1answer
59 views

The risk of sending money to a xpub generated address

Suppose the owner of xpub share the xpub to others, and someone send some money to a xpub generated address. If the owner of xprv does not know the path used to generate that new address, is that ...
0
votes
1answer
26 views

How does an SPV client forms a transaction which is then Broadcasted?

As per my understanding, an SPV client only keeps a track of the block headers in its own database. So when a user tries to send bitcoins using that particular SPV client, how is the transaction ...
0
votes
2answers
37 views

Reference an UTXO of a transaction that has not been yet mined

How to reference an UTXO that has not been yet mined? I want to prepare a transaction and, before spreading it, use its UTXO as input for another relative timelocked transaction. Then, spread the ...
2
votes
1answer
98 views

How to find all UTXOs?

It is known, that UTXOs stored in chainstate database. But how to get them in simple txt view? Not ballances, but each UTXO.
4
votes
1answer
40 views

Is the bit encoding format for the graphic in BIP 68 implicitly little-endian?

CLTV (OP_CHECKLOCKTIMEVERIFY - absolute locktime) and CSV (OP_CHECKSEQUENCEVERIFY - relative locktime) utilize BIP 68. Is the locktime for those two operations implicitly encoded in little-endian ...
5
votes
2answers
138 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
22 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?
0
votes
1answer
76 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
55 views

Is there a UTXO for IOTA?

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
73 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
35 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
43 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
54 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
55 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 ...
1
vote
1answer
334 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
100 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
60 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
61 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
35 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
589 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
272 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
224 views

How can I get UTXO for a specific address?

Are there API's I can use to get this information?
1
vote
1answer
160 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
54 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
263 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
347 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
116 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
549 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
89 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
0answers
441 views

Rest API for address index

I'm looking for a rest api, preferably for a bitcoin core node. So I can get UTXOs per address. I've tried https://github.com/CounterpartyXCP/indexd-server but its pretty slow and crashes my node. ...
0
votes
1answer
92 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
49 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
200 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
57 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, ...
0
votes
1answer
286 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 ...
4
votes
1answer
85 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 ...