Skip to main content

Questions tagged [transaction-weight]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

Are RBF transactions on average larger in size than its predecessors and than non-RBF transactions?

Are RBF transactions (the ones that replace) on average larger in size than its predecessors (the ones to be replaced)? And are non-RBF transactions smaller in size when compared with opt-in-RBF ...
John Smith's user avatar
5 votes
1 answer
522 views

When is OP_RETURN cheaper than OP_FALSE OP_IF?

Since January 2023 there have been many transactions that embed arbitrary data in the leaf script of a P2TR input using the opcodes OP_FALSE OP_IF (also called "inscription envelope"). This ...
Vojtěch Strnad's user avatar
2 votes
1 answer
91 views

Why was there a jump in transactions per block in 2023?

I noticed that there was a jump in the number of transactions per block (from ~2000 to ~3000) in April-May 2023. The size of the serialised UTXO set also ~doubled from ~5GB to ~10GB over the following ...
Lee's user avatar
  • 877
0 votes
1 answer
96 views

CTV real world usage -- How to trustlessly coordinate 1,000 people sharing 1 UTXO? And how many vBytes would be required for such an onboarding Tx?

Lots of CTV talk lately. I believe I understand the basic concept, which is that, say, 1,000 users could share 1 UTXO, while any 1 of those users can withdraw funds to the main chain at any time. So ...
DoctorBuzz1's user avatar
1 vote
1 answer
78 views

How to understand the fees of Bitcoin transfer?

Right now on https://bitcoinfees.net , it is showing the following chart: So it is show 55 - 57 sat / vB is needed for the transfer to take place in about an hour. How do we interpret this chart? For ...
Stefanie Gauss's user avatar
1 vote
0 answers
180 views

Why is the discount on segWit data exactly a factor of 4 and not 5, 6 or something higher?

According to BIP141, the formula for calculating block/transaction weight is: BASE SIZE * 3 + TOTAL SIZE According to Bitcoin wiki (and also based on the above formula): Each byte of the segwit ...
dassd's user avatar
  • 1,099
2 votes
0 answers
31 views

Would exchanges save block space by defaulting deposit addresses to P2TR? [duplicate]

If inputs weigh less in P2TR than other address types, and exchanges conduct big batch transactions for withdrawals, is there a significant efficiency gain in block space they consume if most of their ...
Rex Everything's user avatar
9 votes
1 answer
997 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 ...
Murch's user avatar
  • 76k
2 votes
0 answers
114 views

Is there a limit on the number and size of script inputs when spending a script path in a P2TR transaction?

From BIP 341, Spending using one of the scripts: A Taproot output can be spent by satisfying any of the scripts used in its construction. To do so, a witness stack consisting of the script's inputs, ...
Pramod Kandel's user avatar
1 vote
0 answers
161 views

How to get transaction size as byte before send with Python's bit library?

I am using bit library to make a Bitcoin transaction. I can use methods like this: key.create_transaction([('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy')]) or key.send([('...
reza_khalafi's user avatar
3 votes
1 answer
178 views

What is considered witness data in SegWit?

What fields in a transaction are considered witness data? I need this to calculate the vsize for fee. My understanding is these are marker, flag and witness (from 1 and 2). Or is it just witness, ...
WebOrCode's user avatar
  • 363
4 votes
1 answer
379 views

What is the maximum size transaction that will be relayed by bitcoin nodes using the default configuration?

I understand that the actual size limit of a transaction is determined by the block size, as we can see from this absolute unit. But transactions this large must be submitted directly to a mining pool ...
vnprc's user avatar
  • 405
0 votes
1 answer
72 views

Transfering btc from multiple btc addresses to a single btc address, estimating transaction size

Good morning, for the last few months I have been using the following formula to calculate transaction fee based on the transaction size when sending BTC from one address to multiple addresses(or ...
Vladimir's user avatar
  • 119
3 votes
1 answer
215 views

What is the maximum number of taproot transactions that can be mined in a single block?

If all transactions in a block were spending one p2tr output using the key-path spend and sending to a p2tr output, how many of these transactions could we fit in a single block?
josie's user avatar
  • 681
1 vote
2 answers
296 views

What's cheaper, musig or multisig?

Taproot transactions aren't always cheaper onchain compared to their segwit native counterparts. How does the current MuSig spec fare compared to multisig onchain? Is one always cheaper than the other ...
arshbot's user avatar
  • 1,788
0 votes
3 answers
80 views

Trying to calculate the average fee per tx, but can't get the right value

We are creating a cryptocurrency analytics website and I was wondering how one can calculate the average transaction fee for Bitcoin. For example, like on these three sources. https://www.blockchain....
buckwhitzer's user avatar
2 votes
1 answer
664 views

How to accurately calculate the vsize of a transaction?

there's a transaction txid is fa3467452918627ebd63a3e8570e70d38b0eefef683347510b204ba6962ebe44, using bitcoin-cli we can see it's size,vsize and weight we can get it's hex and it's accurately 225. ...
noob's user avatar
  • 97
7 votes
1 answer
462 views

How much blockspace would it take to spend the complete UTXO set?

I was curious how much blockspace has already been spoken for in the future. Paraphrased: Assuming all block space were used to consolidate the UTXO set in the most efficient manner (and all key ...
Murch's user avatar
  • 76k
8 votes
1 answer
647 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"?
Murch's user avatar
  • 76k
4 votes
1 answer
481 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
  • 76k
0 votes
1 answer
454 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
  • 76k
3 votes
1 answer
81 views

Is it possible for the `size` and `vsize` to be the same for a valid segwit (bech32) transaction?

I'm aware that for non-segwit transactions, vsize is always the same as size. But is it possible for a valid transaction to include size=vsize when involving segwit inputs/outputs? This particular ...
satirn's user avatar
  • 308
2 votes
1 answer
176 views

What is the exact size and weight of a 2-of-2 P2WSH input?

I'm proofreading an article mentioning the cost reduction of P2TR for Lightning channels in comparison to P2WSH. To that end, I'm looking for the precise weight, vsize and serialized length of a 2-of-...
Murch's user avatar
  • 76k
1 vote
1 answer
141 views

What size does a transaction have?

Transaction size should be the same right? I get that there were updates to the btc network that changes the size of transactions. But if you just look at transactions since the last updates, how big ...
codepleb's user avatar
  • 187
0 votes
1 answer
240 views

Most transactions in a block

Block 689074 had 4,463 transactions. Is this the highest number of transactions in a block until now? What are the things that affect the number of transactions possible in a block? Few observations ...
user avatar
0 votes
1 answer
31 views

Can larger transactions have a lesser fee per byte than smaller ones and still get equally treated?

Is the term "volume discounting" applicable in bitcoin transactions, meaning can a user pay less satoshi/Byte if a few transactions are bundled into one? In other words, would a fee for a ...
igobivo's user avatar
  • 157
1 vote
1 answer
165 views

What is the difference between the txsize in mempool and mempool dynamic usage?

There is a table for the txsize in mempool and dynamic memory usage of mempool on statoshi.info's mempool overview? The default size of mempool defined in Bitcoin is 300MB, so is this default size the ...
GoneV's user avatar
  • 185
2 votes
3 answers
518 views

UTXO Model and Trans Fee / Kb Clarification

I have been working on understanding the inputs/outputs and transaction details as according to the UTXO model which is discussed in this question and also thinking about how it relates to transaction ...
Prince M's user avatar
  • 340
0 votes
2 answers
38 views

Coinbase transaction smaller than .001 btc? & Blockchain says my Bitcoincore wallet is invalid

I'm trying to figure out how to send tiny transactions, like 10 cents. Coinbase says the minimum is .001btc. That seems rather large. Is that just a coinbase requirement? Also, my blockchain wallet ...
Jonsey's user avatar
  • 13
4 votes
1 answer
1k 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
  • 76k
1 vote
2 answers
1k views

Understand how transaction size and fees calculation works in caravan

Looks like there is no activity in caravan github repository so maybe someone here can help me with this issue. Already mentioned everything in the below link however my three basic questions are: ...
user avatar
5 votes
1 answer
505 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-...
Murch's user avatar
  • 76k
10 votes
3 answers
5k 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 ...
Skelli's user avatar
  • 217
1 vote
0 answers
55 views

How is this 1 input 2 output tx larger than this 2 input 2 output tx?

I saw the following liquid transaction with one input and two outputs is byte-wise bigger than another liquid transaction with two inputs and two outputs. How is this possible? One input transaction (...
Bertram Lund's user avatar
3 votes
2 answers
183 views

What defines the standard Bitcoin transaction size? [duplicate]

The Lightning Network specifications limit the number of (unsettled) HTLCs in a channel to 483 at each side (maximum 967 total). The rationale behind this is that the penalty transaction must be under ...
Sergei Tikhomirov's user avatar
23 votes
2 answers
13k 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
3 votes
1 answer
920 views

How to calculate the size of multisig transaction?

Can you help or suggest the formula for calculation of simple multi-sig transactions? I have an issue to calculate the size of multi signature 2-2 transaction. I tried to follow this: Predict ...
newbie's user avatar
  • 85
4 votes
2 answers
549 views

On chain cost of Segwit version 1 versus version 0

How do total blockchain cost for Segwit version 0 compare to version 1 which is being proposed? I'm specifically interested in a single user transactions – both paying to public key (or pk hash) and ...
Wapac's user avatar
  • 1,074
0 votes
1 answer
104 views

regarding transaction size in a block

In What are the minimum sizes for transactions and blocks in Bitcoin? The first transaction is set to be 65 bytes long, due to coinbase requirements. What about the second one ? That can be 61 bytes ...
user92452's user avatar
0 votes
1 answer
75 views

re : minimum sizes of transactions and blocks

I see there's a similar question provided here: What are the minimum sizes for transactions and blocks in Bitcoin? But the answer provided might be not correct in the light that "A valid transaction ...
user92452's user avatar
2 votes
2 answers
653 views

What happens if "transaction size" is larger than "maximum block size"?

Assuming a transaction size is T Bytes, while maximum block size is B Bytes, such that T>B. What happens for this transaction? It will be divided into two smaller parts and will be stored in two ...
Questioner's user avatar
  • 1,126
11 votes
2 answers
4k 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?
ecurrencyhodler's user avatar
2 votes
1 answer
433 views

Upper bound on the Bitcoin transaction size [duplicate]

Assume that I want to store some arbitrary data on the Bitcoin blockchain via a single transaction. Question: Is there any upper bound on the size of data I want to send via a single transaction? -...
user153465's user avatar
0 votes
1 answer
519 views

RPC command sendfrom is giving Transaction too large error

I made discord bot for fun with tips, soak and rains of altcoin. When I try to send large amount through the same bot. It is giving me "Transaction too large" error. I found the reason here: ...
Madhu Crypto's user avatar
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 ...
RedGrittyBrick's user avatar
2 votes
2 answers
112 views

Does total size of the transaction affect confirmation time?

Suppose one pays 1 satoshi/byte for their transactions. Will the confirmation of the two transaction below be different? A) a transaction of 1 inputs and 1 output (~192 bytes) B) a transaction of ...
Meysam Feghhi's user avatar
2 votes
1 answer
738 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 ...
user74364's user avatar
1 vote
1 answer
563 views

Will Segwit embedded inside P2SH save fee compared to P2PKH?

How much transaction fee will Segwit embedded inside P2SH save fee compared to P2PKH? Update 1 I found a similar question. or they can be nested in a legacy P2SH 3... address which are backwards-...
zono's user avatar
  • 1,945
9 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
  • 193
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 ...
Nona Shah's user avatar
  • 101