Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
16 views

sendfrom api taking txin for entire wallet.Not only for sender address txin [duplicate]

I've multiple accounts(label) in single wallet(wallet.dat). (Multi wallet is not added in final/master branch of Litecoin Ref link) Now when I use sendfrom api to transfer from one account to another ...
0
votes
0answers
10 views

Reference to UTXO Database initialization [closed]

I am looking for the exact file and line number of the UTXO initialization in the Bitcoin source code.
0
votes
1answer
30 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. ...
1
vote
0answers
22 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
49 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
18 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
27 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
0answers
9 views

Does Elastico support transactions with multiple inputs?

Elastico: https://www.comp.nus.edu.sg/~loiluu/papers/elastico.pdf The paper mentioned a possible double spending checking logic in section 10.2. From what I understand, transactions are sharded into ...
0
votes
1answer
34 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
31 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
169 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
62 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
41 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
52 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
26 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
321 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
258 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
159 views

How can I get UTXO for a specific address?

Are there API's I can use to get this information?
1
vote
1answer
102 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
44 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
208 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
274 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
101 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
378 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
0answers
28 views

How was OP_return used to spend any utxo in 2010? [duplicate]

In the bitcoin wiki it says OP_RETURN is used to make utxos unspendable ,so how was it used to spend any utxo in 2010? Also how would a raw transaction like that look as well as the scriptsig of ...
0
votes
1answer
78 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
331 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
76 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
33 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
142 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
56 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
185 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
84 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
92 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
441 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
580 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
260 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
0answers
175 views

How to get transaction ID of each UTXO data received through RPC so that I can create a raw transaction?

I would like to query the bitcoin node via json-rpc to get the UTXO and then create a raw transaction programatically. The issue is that the RPC call which returns the UTXO doesn't return the ...
0
votes
1answer
201 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
54 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
50 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 ...
6
votes
1answer
793 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
236 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
122 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
45 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
149 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
173 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
87 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
312 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
74 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 ...