In pre-segwit bitcoin, means of calculating transaction charge was straightforward. Really the whole lot was primarily based on the truth that the byte has its personal worth/value (estimated by community) after which charge is obtained as number_of_bytes * proce_of_single_byte
. So, for instance, if the value of 1 byte
is 10 sats, then the charge for a transaction of 250 bytes is 2500 sats.
However what about calculating a charge in post-segwit Bitcoin?
In post-Segwit Bitcoin, bytes have a unique worth/value relying on the kind of byte. So, if the byte is segwit then it’s value 4 occasions lower than a non-segwit byte, that’s its value is 4 occasions smaller. The query is: how is the transaction charge calculated on this case?
Is it achieved by not utilizing bytes
now, however vbytes
after which they’ve a price (value)? And at that, every byte of non-segwit is one vbyte
, whereas every byte of segwit is 0.25 vbyte
? So, for instance, if the value of 1 vbyte
is 10 sats, then the charge for a transaction of 250 bytes (150 non-segwit, 100 segwit) is (150 * 10 sats) + (100/4 * 10 sats) = 1750 sats. So, in post-segwit bitcoin for calculating transaction charge we use (number_of_nonsegwit_bytes * price_of_single_vbyte) + (number_of_segwit_bytes / 4 * price_signle_vbyte)
Is that this how software program and miners calculate transaction charge?
I am asking as a result of right here
Pieter Wuille
mentioned that vsize has no which means aside from people
, whereas bitcoin makes use of weight due to integer numbers. If that is true and vbytes are usually not really utilized in softwares for calculating charge, how is the charge then calculated?