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
1
vote
1answer
404 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?...
1
vote
0answers
49 views

Create an issuance and a send within the same block (XCP)

Using counterparty api I am issuing an asset, signing the raw transaction and sending raw transaction. Api I used is http://counterparty.io/docs/api/#create_issuance As it takes 10 or more minutes to ...
1
vote
0answers
96 views

get utx scriptPubKey to become an object

I'm using this python script https://github.com/sebicas/bitcoin-sniffer When I see a utx I look at each output and find the scriptPubKey I expected to see something like "scriptPubKey": { "asm": ...
1
vote
0answers
646 views

Mempool tracking

I'm trying to clear up some uncertainties around the mempool A tx comes in, its validated, and no other transactions have currently marked any of its inputs. Tx gets added to mempool. If a double ...
0
votes
2answers
44 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 ...
0
votes
1answer
87 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 ...
0
votes
2answers
149 views

How Bitcoin dose find and verify UTXO ? is this efficient?

If Bitcoin sees all blocks, it will be very slow based on chain length and block size but, it can certainly verify incoming transactions. I know that blockchain is never modified any previous block. ...
0
votes
1answer
75 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
580 views

Why do transactions send coins to the same address as they spent it from?

I often notice transactions such as: 364efe5a906de5971e242f9711008e58a5ab79f136a8044b66615e8662d35f09 Where funds from the address 3PU with 1.38 BTC are split to itself (1.35 BTC) and 37Ek (0....
0
votes
2answers
28 views

what is referred as coin in bitcoin network?

I gathered information about bitcoin from various resources. All those resources said that when a transaction is done, the transaction get added to a block. So when Alice send 2 btc to Bob, network ...
0
votes
1answer
48 views

Is a bitcoin UTXO divisible?

In this video Andreas Antonopolous says an output is indivisible and therefore if a transaction smaller than the output is done, the rest is used as change and returned to your different address of ...
0
votes
1answer
53 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
2answers
200 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
1answer
55 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 ...
0
votes
2answers
678 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: ...
0
votes
1answer
223 views

How to quickly get the balance of any bitcoin address? (with no third-party API)

As some people have mentioned (eg. here), the only way to get the balance of an address in bitcoin core was to import it as a watch-only address and rescan the blockchain. Starting with bitcoin core ...
0
votes
1answer
82 views

How long does it take to find a UTXO in UTXOs set?

to validate a TX, the miner or full node should first find the UTXO. How long does it take to find a specific UTXO in a list of UTXOs set? Right now, there are around 100 million of UTXOs. Then, how ...
0
votes
2answers
87 views

How can I consume my whole bitcoin balance in a single transction? Is it possible to use multiples UTXOs in a single transaction?

I want to make use of a single bitcoin address for payment. I'm using bitcoinjs library's transction builder for creating my own transaction. Can anyone help with a proper code to use multiple UTXO's ...
0
votes
2answers
397 views

Bitcoin address generation and UTXO scanning

I'm developing bitcoin payment processing application. I've two question to ask: In each bip32 address, How much UTXO each address should have to consider generating new address to avoid address re-...
0
votes
1answer
77 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
100 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
1answer
391 views

How to get asm and hex from vout

I've got this weird string for a utx message (not my code) CTransaction(nVersion=1 vin=[CTxIn(prevout=COutPoint(hash=41caa5bf2b814135257b26e44b111f55c067f783e3cdf9bdf914e1ef7e403d05 n=0) scriptSig=...
0
votes
1answer
36 views

Private Key leakage due to reusing same address, how to prevent?

1 What precisely is the meaning of "reusing"? Is it receiving multiple times coins to the same btc address? Or is it also about sending coins? 2 How can people avoid this leaking of ...
0
votes
1answer
15 views

Can we determine which one of the referenced outputs corresponds to a cashback transaction in BTC transaction scripts?

let me quickly elaborate the question. The structure of a BTC transaction script looks somewhat like the following example "...
0
votes
1answer
57 views

“scriptSig” for P2SH-P2WPKH

I'm not sure I understand the fields of my input. I have a P2SH address (Testnet). This is the input of my transaction: "vin": [ { "txid": "...
0
votes
1answer
67 views

P2SH-P2WPKH stack

I'm studying P2SH-P2WPKH and when I create the signed transaction I can see this stack (using btcdeb) script | ...
0
votes
1answer
36 views

Bitcoin UTXO anatomy

I've been using a command line tool to fetch spendables from a Bitcoin address. Given an address the following command (source) ouptuts UTXOs the address can spend. tx -i ...
0
votes
1answer
93 views

spend a specifc UTXO

Is there any methods to pick a particular UTXO and send it to a particular address in bitcoin regtest mode using bitcoin-cli other than createrawtransaction and sendtoaddress
0
votes
1answer
54 views

OP_EQUAL not working properly

I went to https://siminchen.github.io/bitcoinIDE/build/editor.html to try some bitcoin scripting and I wrote this script: <1PUzZ61FSVTn12CafJC85Vy1ts3BoFcXdU> OP_HASH160 <...
0
votes
1answer
54 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
1answer
85 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
1answer
55 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
103 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
142 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 ...
0
votes
1answer
73 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
71 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 ...
0
votes
1answer
76 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
193 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
1k 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 ...
0
votes
1answer
67 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 ...
0
votes
1answer
236 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?
0
votes
1answer
59 views

How to create a tx that cannot be replayed?

I've got a very precise question about (self-)protection vs replay attacks in Bitcoin but to clearly explain myself, I need to explain what I did with Ethereum. When the Ethereum fork happened (ETH /...
0
votes
1answer
546 views

What is the memory usage for checking transaction inputs?

Whenever a transaction is received by a node, the node verifies its validity. To that end, it checks for each transaction input whether that input is part of the UTXO set. It is my understanding that ...
0
votes
1answer
347 views

How can I find out if a transaction used a specific vout as its input?

I want to know if a certain output is spent. I am not using bitcoind, I do not have a gettxout RPC call available. How can I learn if a vout is referenced as an input somewhere in the blockchain or ...
0
votes
0answers
15 views

Create New TXID, Vout and Value [closed]

Let's say that I wanted to create a New TXID, Vout, and Value as you know most of the TXID search has been used. Can I start a new? Like this format? Is this code workable? Yes or No? Please advise. ...
0
votes
1answer
19 views

How to Create or Generate a New UTXO in Bitcoin Core?

I know how to use Console in Bitcoin Core but not that expert. I would like to ask is there possible for me to generate or create a new UTXO in Bitcoin Core? All I have with me are the list of TxID ...
0
votes
1answer
41 views

How to create a transaction input from tx id of UTXO?

I'm in the midst of working this github --> https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2sh_transaction.py Sorry as I'm not that good in this. I would like to ask the ...
0
votes
0answers
21 views

What happens if 2 transaction spend to the same output? [duplicate]

I'm looking though the blockchain, and I've found 2 transactions in different blocks, which have the same hash: block 91812: "result": { "hash": "...
0
votes
1answer
44 views

How are UTXOs handled in Ledger Live?

Take this Bitcoin transaction: https://www.blockchain.com/en/btc/tx/bad181b4bf50342e5226982ac5031d8b9ce670053d3b5c7502b0ff349a5f2838 In my Ledger Live, I can see that 0.3881168 BTC left the wallet: ...
0
votes
0answers
46 views

Optimally determine which transaction spent a transaction output

As it has been discussed before, it is very inneficient to find which transaction has spent a transaction output using bitcoin core alone. I found a way of doing it with an electrumx server running on ...