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
3 votes
1 answer
179 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
  • 133
1 vote
0 answers
23 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
68 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
115 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
  • 373
0 votes
1 answer
77 views

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

My raw Transaction ...
Tepan's user avatar
  • 1
1 vote
0 answers
51 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
161 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
  • 169
0 votes
1 answer
113 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
101 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
532 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
  • 478
0 votes
2 answers
52 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
45 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
61 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
71 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
1 vote
1 answer
1k 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
92 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
58 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 ...
Thalis K.'s user avatar
  • 453
0 votes
0 answers
116 views

Interpreting descriptors from bitcoinrpc for python

I've been running through the Bitcoin blockchain like this and comparing the descriptors to https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md... rpc_connection = AuthServiceProxy("...
d3wannabe's user avatar
  • 275
0 votes
1 answer
53 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
51 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
210 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
1 vote
2 answers
173 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
300 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
68 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
82 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
52 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
40 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
132 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
188 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
103 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
148 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
68 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
  • 157
0 votes
1 answer
173 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
185 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
98 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
273 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
71 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
170 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
0 votes
1 answer
146 views

Is the paying of a transaction fee have anything to do with UTXO?

Say I have two addresses in my bitcoin core wallet, address A contains 0.1 BTC and address B contains 0.15 I choose to transfer someone 0.1 BTC, but there is also some fee, say 0.00001. Will the ...
mikest's user avatar
  • 135
0 votes
1 answer
251 views

Bitcoin UTXO Balance Checking

I think I understand how the UTXO model works, the inputs, and outputs, etc. However, one thing I am still having a hard time still, is understanding how balance is calculated from a seed or xkeys. If ...
Sontiac's user avatar
8 votes
2 answers
1k views

How many useable UTXOs are possible with BTC inside them?

I've heard there are somewhere in the range of 80-100 million possible UTXOs, where users could hold their own keys, with their BTC savings inside, and still have them spendable in the future. Best ...
Bitcoin Error Log's user avatar
1 vote
1 answer
180 views

How do exchanges like binance or kucoin store user assets?

My questions about storing user assets: An exchange creates unique deposit addresses for each users. Are these addresses all derived from a HD wallet and exchange controls all the keys and indexes? ...
meysam kheyrollah's user avatar
1 vote
3 answers
144 views

What happens if a transaction is duplicated across different blocks?

I'm sure I am missing something trivial here but I have a question. Let's say there are Node A and Node B. We send a transaction to both nodes. Both nodes now contain an unconfirmed transaction in ...
RStevoUK's user avatar
  • 111
1 vote
1 answer
110 views

How is an unspent TX output value verified?

I know that the current UTXO set is the set of all unspent transaction outputs in the blockchain that is equal to the total number of all bitcoins mined currently and that each UTXO has a reference to ...
LeanMan's user avatar
  • 167
0 votes
2 answers
136 views

How are Satoshis accounted for?

How are Satoshis accounted for and transferred? As in, is it the case that when I have ownership of a particular Sat at an address, is it actually that I own sat number 241536 from BitCoin number ...
Conor McAleavey's user avatar
3 votes
1 answer
151 views

Did Satoshi invent UTXOs?

Did Satoshi invent the UTXO model (the concept of "unspent transaction outputs" that are spent fully when invoked, leaving new UTXOs and "change"), or was the UTXO model based on ...
Maximillian Laumeister's user avatar
1 vote
1 answer
119 views

What exactly is signed in "prev_out"?

What is signed by scriptSig? I use my private key to sign data from the unspent transaction? I sign the "prev_out" object? I read that the signature in "prev_out" is there to ...
Rony Tesler's user avatar
0 votes
2 answers
230 views

Possible for 2 transactions from the same address within the same block?

I am not talking about double spend. I am referring to 2 diff txns For example, Alice has 10 btc. She sends 3 btc to Bob and 4 to Tom. Is that possible in the same block if she has 2 UTXOs with each ...
Stoic's user avatar
  • 1
1 vote
1 answer
439 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 ...
Matt Tainsh's user avatar

1
2 3 4 5 6