Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
1 answer
29 views

Must input UTXO references be unique in a transaction, and/or unique in a block?

Must input UTXO references (txid + vout) be unique in a transaction, and/or be unique in a block? Put another way, is it a rule that UTXOs can be consumed piecemeal in transactions and blocks, so long ...
Lee's user avatar
  • 815
0 votes
2 answers
63 views

How to avoid "Unconfirmed UTXOs are available, but spending them creates a chain of transactions that will be rejected by the mempool"?

I'm encountering an issue with Bitcoind where I frequently get the error: "Unconfirmed UTXOs are available, but spending them creates a chain of transactions that will be rejected by the mempool.&...
Mikhail Yevchenko's user avatar
5 votes
1 answer
428 views

Can an unconfirmed transaction be confirmed several years later?

Suppose that I make a transaction, but due to a low fee it is not confirmed even after several weeks. The transaction is then removed from the mempool of most nodes (and also my wallet disregards the ...
n00p's user avatar
  • 151
1 vote
1 answer
48 views

I can't parse the UTXO from the chainstate

I have a problem with reading tx out from the Bitcoin Core LevelDB chainstate storage. I know that the structure of the current version of the chainstate is key => value where the key is a prefix (...
Novak's user avatar
  • 41
0 votes
1 answer
82 views

How many nodes and edges does the UTXO-coinbase graph have?

Imagine a graph where the leaf nodes are the UTxOs, the intermediate nodes are spent TxOs (vout), the root nodes are the blockheaders and coinbase merklepairs, and the edges are the data required to ...
Lee's user avatar
  • 815
1 vote
2 answers
122 views

What's max possible tx/second right now?

What's max possible tx/second right now, if we use all the latest Bitcoin tech multi-sig, MAST + Taproot, without increasing block size? Let's say our goal is simple tx finality and 10b utxo. How do ...
vi.su.'s user avatar
  • 1,852
3 votes
1 answer
69 views

When chains branch, are there multiple UTXO sets?

If there are "fork" chains coming off a block, how do we keep track of the UTXOs of different public keys? Would I just store UTXOs derived from the longest chain and recalculate if another &...
Shay's user avatar
  • 33
0 votes
1 answer
156 views

What is arbitrary witness data and unspent transaction output?

I'm learning about bitcoin, and I keep seeing arbitrary witness data and I'm confused what it really means. Like what do they mean about arbitrary, does that just mean the data can be anything you ...
Mark's user avatar
  • 9
2 votes
1 answer
120 views

What does a utxo output or vout of 0 mean?

If I sent myself bitcoin to a new address on a different hardware wallet and it was all of my funds with no change, is it normal for the utxo output or "vout" to be 0? It is my understanding ...
John's user avatar
  • 41
0 votes
2 answers
71 views

Fragmentation of UTXOs?

Every Bitcoin transaction results in a transaction split, as we know: a) receiving amount and b) transaction fee. Transaction fees are usually a few thousand satoshis. Then there's c) the 'change' ...
richey's user avatar
  • 157
4 votes
1 answer
145 views

Is there a way to push the output value of a UTXO to the stack in Bitcoin script?

When defining the spending conditions for a UTXO can one use the output value in a script by pushing it to the stack?
Poseidon's user avatar
  • 643
1 vote
0 answers
129 views

Chain 2 transactions in same block with bitcoinlib in Python

I asked yesterday if it's possible to have a tx from A to B then B to C in the same block, with the second tx spending the UTXO of the first one (with initial balance of B is 0) Apparently it is : Can ...
sgbbfbf's user avatar
  • 11
5 votes
1 answer
307 views

How can I cheaply consolidate P2PKH outputs?

I have thousands of UTXOs that were created for experimental purposes back in 2016, programmatically, using P2PKH transactions, each generating hundreds of 10K-ish sat outputs. Since these are now ...
nakwa's user avatar
  • 153
1 vote
0 answers
40 views

Indexing Spent UTXOs

I want to do analytics on bitcoin data and for this I would need to be able to check in what tx a spent UTXO is spent. For this Im going to index all spent UTXOs in a database and I need help with ...
bittzz's user avatar
  • 11
4 votes
1 answer
94 views

What's the mechanism preventing ASP to steal small virtual utxos on Ark?

According to https://www.arkpill.me/, a vUTXO owner is able to: Send the vUTXO with ASP collaboration. Unilaterally redeem the vUTXO using the pre-signed set of redeem transactions. If the vUTXO ...
Louis Singer's user avatar
3 votes
1 answer
157 views

What's causing the number of utxos to increase so quickly?

I was using gettxoutsetinfo a couple weeks ago (maybe a bit longer, can't remember) and the total number of txouts was something like 115 million. Now it's sitting at around 124 million. What's up ...
Marco's user avatar
  • 395
0 votes
1 answer
108 views

Script evaluated without error but finished with a false/empty top stack element (Electrum gives error)

My raw Transaction ...
Tepan's user avatar
  • 3
1 vote
0 answers
70 views

Error when trying to broadcast multi input tx (Programming Bitcoin by Jimmy Song)

I am reading Programming Bitcoin (chapter 7 exercise 5) and I have created a 2 inputs 1 output transaction on testnet which I have signed and it now verifies as true. When I go broadcast the ...
user144329's user avatar
1 vote
1 answer
1k views

How would I go about consolidating my UTXOs from DCA? [duplicate]

In the past one and half year, I've amassed a collection of 18 Unspent Transaction Outputs (UTXOs) through dollar cost averaging every month. Now, I hope to optimize these UTXOs by merging them into ...
Mani T's user avatar
  • 187
0 votes
1 answer
211 views

How to get UTXOs Data from the network Using python?

I want to have the Bitcoin Network UTXOs only for a data analysis project and the purpose is visualization of the time series of 1>BTC wallets . how can I do it using python ? ( or is there any ...
user143828's user avatar
3 votes
1 answer
119 views

Different balances between fullnode and bitcoin explorer

I looked up Block 200 at https://www.blockchain.com/explorer/blocks/btc/200 and found out that coinbase transaction was made and sent 50 BTC to 1HwmP33SaknLYShXfjVU8KmVThU3JiuVgH. But if I check utxos ...
Jin's user avatar
  • 61
6 votes
1 answer
645 views

What was the largest UTXO ever created in bitcoin’s entire history?

In transaction ID 8f8210694d3631a88ff410c573d80caf57db1d8af397bd47687aa4e4c1802464, mined in Block 104770, from early 2011, someone consolidated exactly 400000.00000000 BTC. Was this the biggest chunk ...
deyw's user avatar
  • 550
0 votes
2 answers
57 views

How can one make a transaction that any address can claim it just by solving the scriptPubKey?

I just learned that Mike Hearn created a Bitcoin Puzzle transaction where the first person to solve its scriptPubKey, could claim that transaction's amount as a reward. The thing is... Aren't all the ...
Pedro D.'s user avatar
0 votes
1 answer
52 views

Bitcoin-qt constructing a transaction and choosing the index of the ins and outs

While using Bitcoin-qt I understand there is the "Coin Selection" option. Is there also a way to choose the ordering index of the utxo's for the inputs or outputs? I'm trying to avoid the ...
Michael Tidwell's user avatar
1 vote
1 answer
98 views

About missing utxo in chainstate

I'm trying to obtain up-to-date database of the UTXO and keep updating it as new block is added. And for this, I want to use chainstate as a starting point of synching. I parsed chainstate to obtain ...
Jin's user avatar
  • 61
2 votes
1 answer
103 views

When does chainstate get updated?

What i'm trying to do now is reading LevelDB at chainstate folder to save all utxos at my own DB, and keep tracking the changes of utxos by looking at chainstate folder frequently. However, what i ...
Jin's user avatar
  • 61
2 votes
1 answer
2k views

python-bitcoin-utils - sendrawtransaction RPC error: {"code":-25,"message":"bad-txns-inputs-missingorspent"} when trying to broadcast my tx?

I am trying to create a bitcoin transaction to send all of the funds from tb1qj6zz96g8xgrwpgmdlvmkrjlwzz54sf47086yc9 to tb1qxgm8j0cq7tnftef3t563psl56gtmzxanm5c9uy. ...
ChristianOConnor's user avatar
2 votes
1 answer
122 views

Create offline bitcoin tx for p2pkh address in a user-friendly way?

You created vanity p2pkh-addresses in the past, you have access to the private keys (WIF) and addresses (1...). Now you want to spend the funds securely and in an offline way (you do not want to ...
hodddl's user avatar
  • 101
0 votes
1 answer
76 views

What happens if I `sendrawtransaction` but tx is invalid?

I manually select from my UTXOs, sign the tx (offline programmatical signing, not with wallet) and only interact with bitcoind when I call sendrawtransaction. But in the meantime another process might ...
thalisk's user avatar
  • 483
0 votes
1 answer
116 views

How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?

In stake.com for each user they generate separate bech32 address for deposit & displays the deposited amount as balance in top of the navigation bar. Similarly for withdraw they just ask for the ...
Kimi Raikkonen 9790's user avatar
2 votes
1 answer
52 views

How Wallet Mobile Softwares deal with Wallet Balance and Transaction history?

I'm trying to build a mobile software Wallet made in Flutter with a Bitcoin Core Full node that communicates with a Node.js backend. The problem I can't find the answer to is: how can wallet ...
Francesc0's user avatar
3 votes
1 answer
294 views

Optimising blockchain parsing with rpc + python

I have a python app to track and store utxo in a simple/flat structure that looks like this... from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException # track the utxo trackUtxoList = [] ...
d3wannabe's user avatar
  • 275
2 votes
2 answers
245 views

Selection of inputs from UTXO's who are not used by other unconfirmed transaction

How to prevent selection of unspent transaction from UTXO's which is already used in another unconfirmed transaction ? I am fetching list of UTXO's from here - https://mempool.space/testnet/docs/api/...
coder123's user avatar
1 vote
2 answers
466 views

Do know which UTXO fees are chosen from? Need help on an inscription in a native segwit wallet

I have a UTXO with an inscription that is now valuable, but I accidentally received it into a non-Taproot (bech32, native segwit) wallet. I'm now aware that because of this, I can't use Ordinal theory ...
souper fooly's user avatar
1 vote
1 answer
70 views

Transaction with txin, which ran out of money

How does transaction validation verify that I am not trying to send transactions with the same txin? Does transaction validation go through all the blocks and make sure I'm not trying to write off ...
6blBaJlblu reoJlor's user avatar
2 votes
2 answers
139 views

How should Bitcoin exchanges complete their UTXO consolidations and what factors should they consider?

How should Bitcoin exchanges complete their UTXO consolidations and what factors should they consider i.e. regularity, fixed or variable intervals, consolidate into how many UTXOs etc?
Michael Folkson's user avatar
1 vote
0 answers
62 views

latest UTXO databases received

There are many repositories that allow you to turn blockchain into UTXO. But I can't find where I could download ready-made UTXOs. I only find instructions on how to get such a database myself. ...
accountnujen's user avatar
0 votes
1 answer
41 views

Block Some UTXO [closed]

Is it possible to block some UTXO like PIVX, does is possible in bitcoin? if yes then how and doesn't it reduce supply from total supply of bitcoin? Let's Assume that account A got 5 bitcoin from Some ...
kishan's user avatar
  • 1
1 vote
0 answers
154 views

LND: How to use whole UTXO to open a channel?

How can I use an UTXO completely to open a Channel? Do I have to calculate the fees by hand to do this? If so, what would it be if I have a 1 million sat UTXO and set fees to 3sat/vB?
Luffy's user avatar
  • 11
2 votes
2 answers
206 views

Does an uneconomical output need to be kept in the UTXO set?

Even though it is consensus valid to spend a UTXO of an amount that is lower than the extra fees it would cost to include it in a transaction, most nodes wouldn't relay them because of the ...
leslie's user avatar
  • 52
0 votes
1 answer
115 views

Where to look for the lost BTC

My Tx on btc-testnet seems not transact all the BTC, but there's no UTXO back to my address. How to find the rest of the BTC? Tx 7e0cc1e5c944355e6d448de19a67421eef2a6b4ca4ed58fcd990ce75f66d07a9 1 ...
Paul Yu's user avatar
  • 35
0 votes
1 answer
230 views

Repeating identical outputs in bitcoin transaction

I am building a script that is indexing all bitcoin transactions in real time with all their details etc. But I am looking here at this transaction - https://www.blockchain.com/btc/tx/...
Dan's user avatar
  • 27
-1 votes
2 answers
76 views

How does the Bitcoin network "tie" bitcoins together to form UTXOs?

How does the Bitcoin network "tie" bitcoins together to form UTXOs? Why doesn't the Bitcoin Network just remember everyone's balance? What even is a Bitcoin, is it a string of code that can ...
Jamo's user avatar
  • 167
0 votes
1 answer
238 views

I can't figure out how to use importpubkey

I have been trying to import a public key into my bitcoin[1] node, but it keeps saying that it isn't valid. The address '18uLJohita1yWTAcDpoLPpd2vNAtnsLW4E' publishes front-pages of the New York times ...
John Rigler's user avatar
1 vote
0 answers
107 views

What needs to be changed in Bitcoin if SHA-256 is broken? [duplicate]

I come up with a little bit "catastrophical“ question. I declare that I understand the degree of improbability of such a scenario in our lifetime, but I would still be interested in your opinion. ...
Adam's user avatar
  • 11
1 vote
1 answer
203 views

Are OP_RETURN transactions not stored in chainstate database?

I'm running a bitcoin node on regtest. I'm writing scripts to interact with the chain-state database. For my purpose, I'm creating, signing and sending a transaction to my node (pretty much following ...
Nirmal Khedkar's user avatar
1 vote
1 answer
107 views

What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?

I tried to withdraw from one utxo with the following command: lightning-cli -k withdraw destination=bc1********** satoshi=******* feerate=normal utxos='["********":"0"]' and I got ...
John Smith's user avatar
0 votes
1 answer
379 views

How bitcoin browsers check P2PK and P2SH balance?

Suppose someone sends bitcoins to me using P2PK, I only enter my address starting with 1 in the bitcoin browser, can i get results? my public key hash doesn't appear in either UTXO, only one UTXO has ...
KHJUAF403456ZS3K564WAEF's user avatar
0 votes
1 answer
80 views

How a user in the Bitcoin network verifies a payment?

I'm a beginner who's trying to learn the idea behind Bitcoin. In the Bitcoin whitepaer it's said that: A user only needs to keep a copy of the block headers of the longest proof-of-work chain, which ...
Saswata Dutta's user avatar
1 vote
0 answers
189 views

Send transaction with 2 inputs and 2 outputs using Blockcypher

I'm using a node.js client of Blockcypher in order to broadcast a Bitcoin transaction. My code: const originWalletBalance = getBalance(originAddress) const fee = calculateFee() const txBody = { ...
forhas's user avatar
  • 137

1
2 3 4 5
7