Questions tagged [transaction-weight]
The transaction-weight tag has no usage guidance.
19
questions
66
votes
3
answers
82k
views
How to calculate transaction size before sending (Legacy Non-Segwit - P2PKH/P2SH)
I know that I pay the transaction fee per kB, so how can I calculate how large the transaction will be before I send it via the RPC api. I run a site using bitcoins, and I cannot let the user's ...
10
votes
2
answers
3k
views
How do virtual size, stripped size and raw size compare between legacy address formats and native segwit?
This answer states that SegWit doesn't reduce transaction size. If this is true, why is it cheaper to send a SegWit transaction?
6
votes
1
answer
2k
views
Why does BIP141 define both virtual transaction size and weight?
Why does BIP 141 (segwit) define both virtual transaction size and weight?
Weight seems to be just four times virtual transaction size (or vice versa, depending on what you define first). Why are ...
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?
8
votes
2
answers
2k
views
What is the size of different Bitcoin transaction types?
I found this interesting take on Bitcoin transaction type trends from 2015.
As that article is from 2 years ago, I am wondering:
a. Are there any newer transaction types?
b. What is the average ...
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
...
4
votes
1
answer
852
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 ...
0
votes
1
answer
266
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 ...
6
votes
1
answer
3k
views
What are the minimum sizes for transactions and blocks in Bitcoin?
I have gone through many research articles but couldn't find out what the minimum sizes of a transaction and a block are.
Is there any reference where I can find an answer to my question?
8
votes
1
answer
749
views
Is there an economic incentive to switch from P2WPKH to P2TR?
I have multiple times seen people argue that there is “no economic incentive” to switch from P2WPKH to P2TR. I know that the sum of input and output weight on P2WPKH and P2TR are very similar, but how ...
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 ...
8
votes
1
answer
574
views
What is signature grinding?
What is signature grinding and why does the answer to What is the size and weight of a wrapped segwit single-sig input? "highly recommend it"?
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 ...
2
votes
1
answer
316
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?.
1
vote
1
answer
683
views
What is the absolute smallest size of the data (bytes) that a blockchain transaction could possibly be?
I am looking into completing blockchain transactions over an extremely limited data transport channel. Think even more limited than a satellite connection. The maximum payload I can send at any one ...
10
votes
3
answers
4k
views
How is the size of a bitcoin transaction calculated
From what I understand, the fees set on bitcoin transaction are based on a recommended fee (mostly, from a 3rd party service) per byte of the transaction size. What I am curious about is how do ...
8
votes
3
answers
7k
views
Benefits of Bech32 addresses?
In Bitcoin core, when generating a new address for receiving a payment, you get this dialogue:
There is a tick-box for "Generate Bech32 address".
I understand that this is a relatively new feature ...
5
votes
1
answer
448
views
What are the sizes of single-sig and 2-of-3 multisig taproot inputs?
There was a Twitter discussion about the sizes of inputs and Taproot came up. What are the input sizes for Taproot inputs?
Please cover both the key path spend (single-sig or default spend) and 2-of-...
3
votes
2
answers
746
views
How much does the weight of 2-of-3 multisignature inputs differ between P2SH and P2SH-P2WSH?
I'm trying to calculate the weight of a 2-of-3 multisignature P2SH-P2WSH input. I found the related question Predict multi signature transaction size, which I've calculated with m=2, n=3 here:
...