Skip to main content

Questions tagged [output]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
30 votes
1 answer
29k views

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 ...
user380208's user avatar
4 votes
1 answer
1k views

Are transactions containing zero-value output accepted by miners?

Would miners generally accept a transaction that has one of its output values set to zero? Can the acceptance in this case depend also on the scriptPubKey associated with the zeroed output?
knaperek's user avatar
  • 1,424
8 votes
2 answers
3k views

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. ...
Click Upvote's user avatar
16 votes
4 answers
9k views

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 ...
cainy393's user avatar
  • 261
11 votes
3 answers
6k views

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 ...
KalenGi's user avatar
  • 213
7 votes
1 answer
440 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
  • 77k
5 votes
1 answer
312 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
  • 77k
5 votes
2 answers
1k views

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",...
lxgr's user avatar
  • 281
5 votes
1 answer
806 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
5 votes
4 answers
209 views

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 ...
UTF-8's user avatar
  • 3,234
4 votes
1 answer
414 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
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
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
2 votes
1 answer
849 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
173 views

Processing multiple transactions very fast

Let's say I run an automated script, with the main purpose to send transactions as fast as possible. I want to send one transaction with 5 BTC to one address and a transaction with 2 BTC to another. ...
Fabulous Job's user avatar
0 votes
1 answer
209 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
0 votes
1 answer
2k 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 ...
Learner's user avatar
  • 11