In the previous post I touched upon SegWit and how it was used to fit almost 4MB of data within the 1MB block size limit present in Bitcoin.


SegWit was introduced to the Bitcoin network in 2017 and removed (segregated) the witness data from the transactions’ inputs and moved them to a separate structure within the blockchain. This had the effect of reducing the block size requirements for transactions (and therefore the often the transaction costs) and protecting against transaction malleability.

The move also brought in a means to increase the storage potential as seen in the previous post relating to ordinals of around 3.9MB being stored on chain. This is due to a move from bytes to Work Units (wu) for calculating the size. Since the SegWit update, blocks are limited to 4 million weight units, with 1 byte in a legacy transaction being 4wu, but 1 byte in a SegWit transaction being 1wu.

Native SegWit addresses can be identified as starting bc1 on the mainnet, or tb1 for the test net. P2SH (Pay to Script Hash) addresses can also be used for SegWit transactions which start with ‘3’.

The adoption of SegWit for transactions appears pretty rapid, perhaps not unexpected given the savings made in fees by users. In 2018, approximately 1/3rd of transactions used SegWit. By 2019 this was around 43% and by 2022 approximately 87% of transactions used SegWit. Impressively, in 2023 SegWit usage appears to continue to rise with 86.5% of transactions using SegWit.


The table below summarises the quantity and percentage of SegWit transactions each year.

YearNo of
SegWit

Transactions
No of Legacy
Transaction
s
Total No of
Transactions
Percentage
SegWit
Percentage
Normal
2009032708327080100.00
201001853051853050100.00
20110190176519017650100.00
20120845305084530500100.00
2013019643241196432410100.00
2014025263720252637200100.00
2015045674023456740230100.00
2016082626623826266230100.00
201733742151006890141040632293.2496.76
201826599771547958658139563632.6867.32
2019510861026869754511978364742.6557.35
2020551791305737436811255349849.0250.98
202163919480338769739779645365.3634.64
202277594859155115199310637883.3416.66
20231444662522544831670110886.5013.50