Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [output]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Identifying change addresses by locktime?

I know that Blocksci is no longer being actively developed but I was reading through some of the documentation about identifying change addresses and came across this: change.locktime = <blocksci....
user2334659's user avatar
2 votes
1 answer
160 views

What’s going on with this "NULL address input" transaction?

I was reading this from the Bitcoin wiki (https://en.bitcoin.it/wiki/From_address). I understand the concept of UTXOs and that any input to a transaction is an output from a previous transaction. I ...
user2334659's user avatar
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
2 votes
1 answer
78 views

What would happen if we provide witness program different than 32 bytes for SegWit 1?

If the witness program (at the time of writing this question) is greater than 1, it is considered as anyone-can-spend output. Also, if the witness version is 1 and the witness program is 32 bytes, ...
LeaBit's user avatar
  • 950
2 votes
1 answer
171 views

Estimating virtual bytes of a transaction seems circular

I'm sorry if this has been answered before, but I haven't found anyone really bring this up. I am trying to construct a PSBT, which assumes a fixed feerate and a fixed amount to send to some address. ...
Sherwin Li's user avatar
4 votes
1 answer
330 views

How to identify a transaction input type?

I am currently working on a tool parsing every transaction of the bitcoin blockchain, using the getrawtransaction RPC call in verbose mode. My goal is to store them all in a database, while keeping ...
Lev's user avatar
  • 75
1 vote
2 answers
159 views

When the validity of scriptPubKey is checked?

I have a couple of questions related to validation of script in transaction output (scriptPubKey). I apologize for a little more text, but I tried to explain in detail what I don't understand. Since ...
dassd's user avatar
  • 1,099
5 votes
4 answers
871 views

Why is little endian used in transaction formatting and other parts of bitcoin?

I've noticed just from studying the raw hex values of transactions that many components are formatted in hexidecimal little endian. For example, the amount specified in an output will be formatted as ...
jiamijiang's user avatar
0 votes
1 answer
99 views

Transaction fees for multiple outputs

I received a transaction from an exchange. It has 30 outputs, the fee was - according to blockchain.com - roughly 18k sats. Is this the fee per output or for the entire transaction? Is it cheaper - ...
Moritz_st's user avatar
0 votes
3 answers
93 views

Can someone break down what is returned by pybtc?

I am feeding network data to pybtc.Transactions. What I do is I take tx messages (which I understand to only contain a single transaction) and I feed them into pybtc.Transaction but only after ...
bitcoinluvr6969's user avatar
0 votes
1 answer
188 views

parse bitcoin addresses from transactions received through the P2P protocol using python

I'm trying to extract public keys and transaction amounts from tx commands using python. Everyone on this stack exchange has been extremely helpful, but I think it's time to try and leverage a library ...
bitcoinluvr6969's user avatar
2 votes
1 answer
142 views

How come an `OP_3` P2SH redeem script is spendable?

I completed a round trip transaction with the redeem script hash: 31vFvEkyAb2iusbPip36H9rVt6pxExuaVR, whose redeem script is OP_3 (0x53) (yes I know not secure). I can understand OP_1 redeem script ...
Peter's user avatar
  • 115
3 votes
1 answer
383 views

Understanding transaction with hundreds of inputs and outputs

I've been trying to follow a transaction with hundreds of inputs from different addresses and hundreds of outputs. This is the transaction I'm looking into: https://www.blockchain.com/explorer/...
Nucklear's user avatar
  • 163
2 votes
3 answers
284 views

Multi input transaction heuristic

I was revising for my upcoming exam and came across this slide, which I don't completely understand as I find it a bit confusing. Can someone please explain what the lecturer was trying to point out? ...
Goel77's user avatar
  • 23
0 votes
2 answers
412 views

Explain like I am 5...how can one transaction hash have so many outputs?

I have tx hash 5b03738ed2cc9c80e6a4dded10794ab28efca2671039764217d53c54f64a3f39 and it contains 11 outputs. I understand how UTXO works, but where I feel confused is how does the sending address know ...
madamepresident's user avatar
0 votes
1 answer
75 views

Can a coinbase adhering to BIP-0034 (block v2) only pay P2PKH addresses?

I've been working on a bitcoin miner that uses BIP-0034 (block v2). I'm confused about the coinbase transaction of block v2. Does block v2 only accept P2PKH type of address to allow me to receive a ...
just.callme.client's user avatar
8 votes
1 answer
818 views

Why are transaction input and output indices called `vin` and `vout`?

What does the v in vin and vout stand for? And is it an instance of a more general naming scheme?
Casey Rodarmor's user avatar
1 vote
1 answer
152 views

NBitcoin in C# MVC App Gives Me A WitnessProgramMissmatch Error When I Try to Build The Transaction

I am writing tests for an app I built that uses NBitcoin to send bitcoin and make bitcoin transactions. I have the following code to create fake bitcoins for an integration test: private ICoin[] ...
ChristianOConnor's user avatar
1 vote
0 answers
43 views

Hash outputs in Taproot transactions

I'm using the test vector from Bip341 to generate the Hash outputs in the test transaction. My procedure is as follows: Serialise amount as 8-byte little endian Serialise scriptpubkey including ...
Chiru's user avatar
  • 161
0 votes
1 answer
116 views

Does testnet block 855996c9444827112b68c0606d8dfec62385d1b3448e412bc1c721633a641669 discard the block reward?

I am poking around in the testnet blockchain, and I saw a block mined recently where the outputs added up to just 0.04953672 BTC. Since there is no output for the 50BTC block reward, does that mean ...
Dave M.'s user avatar
  • 147
4 votes
2 answers
1k views

Why are segwit transactions cheaper than legacy transactions?

What's the reason to make fees for segwit addresses lower, while keeping legacy addresses with higher fees? -- I'm interested in both, why segwit transactions are cheaper than legacy addresses, and ...
user avatar
2 votes
1 answer
777 views

How can I get the destination address from raw transaction data?

I am writing a program that reads Bitcoin transactions from .blk files and performs some analysis on them. I would like to get the transaction destination addresses (like in some transaction explorers:...
zigak's user avatar
  • 21
1 vote
1 answer
30 views

How is the input and output fields serialised in a transaction?

I'm trying to write a parsing function to find the input and output fields in a serialised transaction. My problem is that I can find the number of inputs and outputs using the varint byte(s), but not ...
Chiru's user avatar
  • 161
6 votes
2 answers
2k views

What is this unusual transaction in the Bitcoin blockchain?

I found a transaction in the Bitcoin blockchain. The first output is unspent and has an abnormal Pkscript. What is this output and why does this output address have no transaction and balance on it? ...
mshomali's user avatar
  • 163
0 votes
0 answers
32 views

How can I be sure that anyone (i.e miner) will not change outputs from transaction? [duplicate]

I am wondering if ie. miner cannot change outputs from transaction. We have example of transaction: { "version": 1, "locktime": 0, "vin": [ { "txid": &...
MMC's user avatar
  • 1
0 votes
1 answer
58 views

output descriptor serialization

I'm looking at the following official test vector: wsh(multi(1,xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB/1/0/*,...
Gorazd's user avatar
  • 3
7 votes
1 answer
434 views

Will cross-input signature aggregation need a new output type?

If cross-input signature aggregation were to get implemented in a subsequent soft fork after Taproot's activation, would its use require a new output type?
Murch's user avatar
  • 75.8k
0 votes
1 answer
76 views

Sent BTC to Old Output Address

I sent BTC to an old Output address from a previous transaction and now I do not know where it has gone. Does anyone know how to fix this?
user120955's user avatar
4 votes
1 answer
106 views

Can you have a transaction without a change output?

While reading about the fees here https://metamug.com/article/security/bitcoin-transaction-fee-satoshi-per-byte.html The article said that "In the simplest case, you'll have one input and two ...
igobivo's user avatar
  • 157
2 votes
1 answer
171 views

Retrieve all Unspend Output given a priv key

Is it possible to retrieve all Unspend Output transaction given the private key? I have noticed that different wallet give me different balance for the same Private Key. For instance, Atom and BitPay ...
Samir Sadek's user avatar
1 vote
1 answer
121 views

Why does the value range of outputs need to be restricted?

In the 'tx messages' section for protocol rules we have Each output value, as well as the total, must be in legal money range For each input, if the referenced output does not exist (e.g. never ...
Prince M's user avatar
  • 340
1 vote
1 answer
112 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 ...
MHT's user avatar
  • 13
-1 votes
1 answer
131 views

Please help out I send 109k to my client he was able to receive $50,000 please help

I send a bitcoin transaction of all coin my wallet which is $109,180 to my client wallet address giving to me. But he received $50,000 in is wallet address. And I sent all the coin my of 109180. ...
Midolin's user avatar
2 votes
2 answers
3k 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 ...
S. C.'s user avatar
  • 21
5 votes
1 answer
759 views

What does the index of an UTXO stand for?

For example, here is the output of an API I hit with one of my testnet UTXOs. What is the meaning of the index field in this context ? "utxo":[ { "block_id":1899516, ...
stall man's user avatar
1 vote
1 answer
164 views

Transaction Output Order

Suppose I generate a transaction with 5 outputs. Is there a deterministic way to know how the outputs will be ordered on chain (their .n values) or will they simply appear in the order in which I ...
Albert Renshaw's user avatar
2 votes
1 answer
300 views

Refer to UTXO by output index or output full address in blockchain?

I'm writing my own simple crypto and wondering whether input in a transaction should refer to unspend output only by it's TXID and vout (index in outputs vector in a transaction) OR by it's TXID and ...
zaabson's user avatar
  • 21
1 vote
1 answer
122 views

How to identify the sender from crypto payments

I want my users to deposit crypto into the website for credits, but the biggest issue is getting the input address (the user's address). How can I identify the sender from the transaction (since there ...
Lenneth's user avatar
  • 21
2 votes
1 answer
234 views

Transaction parsing - Satoshi value

how exactly is the satoshi value in a raw transaction calculated to decimal? Because on blockchain.info, I cannot figure out how they parse the raw transaction from that value to the JSON result. I ...
anne1234's user avatar
5 votes
2 answers
1k views

Why does vout sometimes not have address?

I am trying to parse all transactions. I found that some transactions do not have addresses in their vout. There are two situations that vout does not have addresses. The first one is the miner reward....
Mars Lee's user avatar
  • 173
0 votes
2 answers
59 views

Check txout against the circulating supply instread of MAX_MONEY

https://github.com/bitcoin/bitcoin/blob/aaaaad6ac95b402fe18d019d67897ced6b316ee0/src/consensus/tx_check.cpp#L27 If txout.nValue is more than the circulating supply and less than MAX_MONEY, ...
yahiheb's user avatar
  • 169
0 votes
2 answers
179 views

Why is 'script' used in a transaction instead of the output address?

I see transactions contain script for each output, but this "script" seems to be deterministically derived from the address associated with the output. Why does the bitcoin protocol opt for the use ...
Albert Renshaw's user avatar
5 votes
2 answers
452 views

Is it possible to write a transaction of bitcoins, having only pen, paper and a private key from the address with some unspent outputs?

In my last answer I have done an allegation which I want to be proven or disproven. If this work possible, how much paper does it require? What kind of software needs Bob to send a transaction to ...
Eimrine's user avatar
  • 95
2 votes
0 answers
142 views

Address final balance is 0 after receiving 0.003 BTC

I generated a new BTC address (address A). I tried to send 0.003 BTC to address A. After sending them from my coinnomi wallet, the balance of address A remains 0 and from output seems that 0.003 BTC ...
iasonas ladias's user avatar
3 votes
1 answer
184 views

Can a coinbase transaction have a segwit output?

And more generally speaking, are there any restrictions on the output of a coinbase transaction?
Darius's user avatar
  • 789
5 votes
1 answer
303 views

Why is a 20 byte hash acceptable in p2wpkh but p2wsh needs 32 bytes?

Why is it acceptable to use a 20 byte hash to represent single-sig witness programs whereas a 32 byte hash is used for pay to witness script hash?
Murch's user avatar
  • 75.8k
0 votes
2 answers
221 views

Why same output address is invalid in a transaction on Bitcoin Core?

I'm studying Bitcoin Core currently. I found incomprehensible code, that shows making a transaction is rejected if there are same output addresses in a transaction. See Fig1, Fig2 Origin source code ...
Hyunsoo's user avatar
  • 363
1 vote
0 answers
40 views

How does a Drivechain output work?

It is said that Drivechain works by sending a transaction output to a miner/hashrate-controlled escrow. I know it works by allowing miners to vote over a large number of blocks on transactions, that ...
fiatjaf's user avatar
  • 611
1 vote
0 answers
61 views

How many TXO have been created in total?

I've seen some statistical data about the Bitcoin UTXO number (around 61M currently). I was wondering how many TXOs (including spent and unspent) there were in the complete history of Bitcoin?
Scaryang's user avatar
0 votes
1 answer
150 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 <...
ParmuTownley's user avatar