Questions tagged [transaction-size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
62
votes
3answers
78k 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 ...
8
votes
2answers
1k 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 ...
6
votes
2answers
2k 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
1answer
2k 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?
12
votes
2answers
4k 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?
6
votes
1answer
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 ...
3
votes
1answer
341 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 ...
1
vote
1answer
556 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 ...
7
votes
3answers
2k 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 ...
5
votes
1answer
284 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-...