Linked Questions

21 votes
2 answers
10k views

Is there a difference between bytes and virtual bytes (vbytes)?

In an Optech newsletter, size is referred to using vbytes. Is there a difference between vbytes and bytes? If so, what is the difference?
AdaptiveAnalysis's user avatar
15 votes
3 answers
8k 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
  • 251
8 votes
2 answers
2k views

How does SegWit reduce transaction size, when the signature is simply moved to another part of the transaction?

This video explains that the signature is moved out of the input section and moved to the new one called the witness. From what I can tell, the witness signature is still contained in this transaction ...
robinnnnn's user avatar
  • 183
7 votes
1 answer
2k views

What is the difference between "native segwit" and "bech32"?

People seem to be using "native segwit" and "bech32" interchangeably. Are they really the same thing?
Murch's user avatar
  • 72.6k
7 votes
1 answer
1k views

How big is the input of a P2PKH transaction?

How many bytes does a P2PKH input have? I'm finding a few different numbers: Why does the default miner implementation use pay-to-pubkey? states: push + sig + push + key = 1 + 72 + 1 + 61 = 139 ...
Murch's user avatar
  • 72.6k
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
3 votes
3 answers
617 views

Does the transaction fee depend on the transferred amount?

Do transaction fees depend on the amount of bitcoin sent? On what factors do fees depends?
Arjun Reddy's user avatar
4 votes
1 answer
841 views

What is the size and weight of a P2WPKH input?

I'm investigating diverging P2WPKH input size calculations on two Bitcoin projects and some blog posts. I'm looking for a detailed explanation of the exact weight, vsize and serialized length of a ...
Murch's user avatar
  • 72.6k
2 votes
1 answer
352 views

What is the purpose of P2WPKH-P2SH?

When I ask the google what is the purpose of P2WPKH nested in P2SH, it says the following: This allows the user to send funds to a SegWit (Segregated Witness) address using a non-SegWit transaction, ...
dassd's user avatar
  • 1,029
2 votes
1 answer
312 views

What is the weight of a P2TR input?

I'm looking for a detailed explanation of the weight, vsize and serialized length of a P2TR input, in the same vein as How big is the input of a P2PKH transaction?.
Murch's user avatar
  • 72.6k
0 votes
1 answer
258 views

What is the size and weight of a wrapped segwit single-sig input?

I'm looking for a detailed explanation of the exact weight, vsize and serialized length of a P2SH-P2WPKH (wrapped-segwit single-sig) input, in the same vein as How big is the input of a P2PKH ...
Murch's user avatar
  • 72.6k
0 votes
3 answers
99 views

Rationale behind accepting btc as a mode of payment?

Tesla has said they "expect to begin accepting Bitcoin as a form of payment for our products in the near future." But Bitcoin doesn't scale. It achieves about roughly 6 transactions per ...
nz_21's user avatar
  • 121
0 votes
1 answer
144 views

Where are signatures stored in segwit, and why are addresses different?

So I'm researching SegWit, and as far as I'm aware, it re-organizes the data structure of transactions so that the ECDSA signature is not included in the preimage of the Tx Hash. I am also aware that ...
bitcash complex's user avatar
0 votes
1 answer
136 views

What is the way that fee is calculated in post-segwit bitcoin?

In pre-segwit bitcoin, process of calculating transaction fee was easy. Actually everything was based on the fact that the byte has its own value/price (estimated by network) and then fee is obtained ...
dassd's user avatar
  • 1,029
1 vote
1 answer
140 views

Input/Output size for various transaction types [duplicate]

What are input/output sizes for various transaction types? I see some numbers like 210 byte for input for p2sh-p2wpkh here (How do virtual size, stripped size and raw size compare between legacy ...
1_want_to_be_good_dev's user avatar

15 30 50 per page