Questions tagged [utxo]
Unspent Transaction Outputs (UTXOs) are created by transactions and allow the owner of an associated address to spend a specific amount.
277
questions
0
votes
1
answer
23
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 ...
0
votes
0
answers
69
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("...
0
votes
1
answer
23
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 ...
2
votes
1
answer
37
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 ...
3
votes
1
answer
84
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 = []
...
0
votes
1
answer
38
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/...
1
vote
2
answers
135
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 ...
1
vote
1
answer
61
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 ...
1
vote
1
answer
37
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?
1
vote
0
answers
34
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. ...
0
votes
1
answer
34
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 ...
1
vote
0
answers
84
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?
2
votes
2
answers
159
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 ...
0
votes
1
answer
84
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 ...
0
votes
1
answer
84
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/...
0
votes
0
answers
44
views
How well does electrum scale with long term use and many UTXOs?
Let's say I've been living in a bitcoin utopia for a decade and I've been using electrum for all my financial dealings during this time (e.g. to receive my salary, get paid for contract work, pay for ...
-1
votes
2
answers
60
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 ...
0
votes
1
answer
99
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 ...
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. ...
1
vote
1
answer
158
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 ...
1
vote
1
answer
70
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 ...
0
votes
1
answer
172
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 ...
0
votes
1
answer
66
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 ...
1
vote
0
answers
127
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 = {
...
0
votes
1
answer
72
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 ...
0
votes
1
answer
171
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 ...
8
votes
2
answers
501
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 ...
1
vote
1
answer
162
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?
...
1
vote
3
answers
107
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 ...
1
vote
1
answer
75
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 ...
0
votes
2
answers
82
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 ...
3
votes
1
answer
117
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 ...
1
vote
1
answer
97
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 ...
0
votes
2
answers
127
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 ...
1
vote
1
answer
337
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 ...
0
votes
0
answers
60
views
Cannot unserialize chainstate transaction outputs after de-obfuscation
I was able to read chainstate database.
Getting the key and de-obfuscating to get a valid last block.
However, when it comes to transactions that follow after that,
I cannot de-serialize them no ...
1
vote
0
answers
113
views
Use wallet db for locked UTXOs in Bitcoin Core
Related question: Why are UTXO locks stored in memory only?
Sorry this maybe a dumb question for people good with using database in C++ however I am not able to understand what exactly is going wrong ...
1
vote
1
answer
152
views
Why are UTXO locks stored in memory only?
Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list
is always cleared (by virtue of process exit) when a node stops or fails.
https://bitcoincore.org/en/...
2
votes
2
answers
163
views
Is it possible to assign a single "from" and a single "to" address to Bitcoin transactions?
I am working on a project where we need to get the "from" and "to" address for every transaction across a number of cryptocurrencies. In account-based currencies, this is pretty ...
3
votes
1
answer
227
views
Are UTXOs signed with a private key?
Are UTXOs signed by a private key?
I'm trying to understand exactly which parts of Bitcoin use public and private keys. You need a private key in order to generate transaction output, and to create a ...
2
votes
3
answers
372
views
UTXO Model and Trans Fee / Kb Clarification
I have been working on understanding the inputs/outputs and transaction details as according to the UTXO model which is discussed in this question and also thinking about how it relates to transaction ...
2
votes
2
answers
2k
views
Confused about UTXO management and consolidation
I have a few questions regarding utxo management and consolidation. I know that the more UTXO's you have, the heavier your transaction will be, the more fees you'll have to pay.
The things I don't ...
1
vote
1
answer
83
views
How does a miner verify a transaction which is spending an output of another transaction in the same block?
It is mentioned in this post that:
If all validation of all transactions in a block succeeds, the consumed inputs are removed from the database, and all outputs of those transactions added as fresh ...
1
vote
1
answer
107
views
Are unspent UTXO's on Bitcoin from before the AUG 2017 BCH fork at risk to a replay attack?
Is it true that any UTXO's that are unspent prefork of BCH AUG 2017, has a risk of a replay attack? Say I have 1 BTC in my wallet which has never moved since 2016. Now I load that private key into BCH ...
1
vote
1
answer
56
views
What were some discussed and current potential issues with pre-forked Bitcoin coins from August 2017 that have never moved since then?
I was speaking to a friend that mentioned that there were issues with pre-forked Bitcoin coins from Aug 2017 that never moved. He wouldn't tell me exactly what the potential issue was, but what were ...
1
vote
1
answer
79
views
How does a full-node index watch-only addresses?
I can import watch-only addresses into my full-node's wallet. I can start querying their utxos from that point onward.
Where are watch-only addresses stored and how does my node keep index of their ...
0
votes
1
answer
226
views
Comparing UTXO transactions with Accounts transactions
I have seen few websites that compare number of transactions and fees between Bitcoin and Ethereum.
Examples: https://www.flippening.watch/ and https://cryptofees.info/
What does the high number of ...
2
votes
2
answers
1k
views
What exactly is the "vout" field?
This is driving me nuts. Through trial-and-error, asking numerous people and attempting to read endless articles and manuals, I've come to the conclusion that the "transactions" listed by ...
5
votes
1
answer
270
views
When the UTXO in the cache is full, what strategy is used to replace one UTXO with another in the cache?
The UTXO set is stored on the disk, but some UTXOs are also stored in the cache. When validating a transaction, you need to query the UTXO pointed to by the input of the transaction. First, you go to ...
0
votes
0
answers
41
views
Signing transaction for later use
If I have a segwit UTXO with for example 10 BTC , can I make some raw transactions ready to get broadcasted?