Questions tagged [output]
107 questions
30
votes
1 answer
What is P2PK, P2PKH, P2SH, P2WPKH - ELI5
Explain like I'm 5 years old and my other half of the brain is surgically removed :) I don't want to put a lot of stress on my brain
Also what is the difference between BTC held in P2SH and Unspent P2SH Output…
user380208
- 613
- 1
- 6
- 11
15
votes
3 answers
What is the maximum number of inputs/outputs a transaction can have?
Is there a maximum recommended number of inputs/outputs for each transaction? I was scripting a faucet and wasn't sure whether to payout in one transaction to all addresses or split them into groups of say 100 or 1000.
cainy393
- 251
- 2
- 3
11
votes
3 answers
How would you end up with more than two transaction outputs?
I saw a Bitcoin transaction that has 6 inputs and 4 outputs. I understand that several inputs are sometimes used in order to meet the amount requirements of the output. As a result you have two outputs: The spent amount and the change.
How is it…
KalenGi
- 213
- 2
- 5
8
votes
2 answers
How to retrieve the from and to wallet addresses of a transaction?
Given a transaction's inputs and outputs, I'd like to be able to extract the wallet address (or addresses) which sent the transaction, and also the address/addresses that will receive the transaction.
Which part / field of the input refers to the…
Click Upvote
- 183
- 1
- 6
8
votes
1 answer
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
- 524
- 2
- 9
7
votes
1 answer
What are the standard formats of transaction outputs?
A transaction output can have the type
Pay to public key hash, P2PKH, where the ScriptPubKey field has the format:
76 a9 14 <20-byte hash of pubkey> 88 ac
Pay to script hash, P2SH, used for e.g. multisig:
a9 14 <20-byte hash of script> 87
There is…
Thorkil Værge
- 1,047
- 8
- 24
6
votes
2 answers
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?
Link to transaction:…
mshomali
- 163
- 6
6
votes
1 answer
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
- 71,155
- 33
- 180
- 600
5
votes
2 answers
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.
For example, run this:
bitcoin-cli…
Mars Lee
- 173
- 7
5
votes
2 answers
what's the point of "n" in "vout"? getrawtransaction
It seems like "n" is the index, is that true? If that is the case, why is the "n" key necessary?
Example:
bitcoin-cli getrawtransaction b13b4765e46228f3239858c9f18e766b72bed24a56c52b9692e7f021c376e7ce 1
One of the resulting vouts:
"vout": [
…
sizzlecookie
- 436
- 4
- 9
5
votes
1 answer
Will all UTXOs eventually be worth 1 Satoshi?
If I want to spend 0.4BTC and I only have a UTXO for 1.0BTC, I will send 0.4BTC to the seller's address and 0.6BTC to my address. The seller has one UTXO and I have the other.
One UTXO has become two.
As time passes and more transactions occur, the…
dentaku
- 53
- 2
5
votes
4 answers
Is it possible to make an output only spendable to a specific address?
Basically, the entire question fits into the title. Does the Bitcoin scripting language allow for a transaction output to only be spendable to a specific address? Is it possible to forbid all other spends? Is it possible to dictate that only that…
UTF-8
- 3,214
- 1
- 14
- 28
5
votes
2 answers
Can an output be spent in the block in which it is contained?
Is a Bitcoin block containing both a transaction that funds an output, and another transaction that immediately spends the same output, allowed by the protocol?
Does such behavior occur "in the wild", e.g. do any of the common clients allow spending…
lxgr
- 281
- 1
- 4
5
votes
4 answers
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 b6f5050000000000 instead of 0005F5B6, which…
jiamijiang
- 105
- 6
4
votes
2 answers
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 miners?
Eimrine
- 85
- 6