What is Nostr?
mattoshi /
npub1hyl…76k4
2023-05-10 18:36:40
in reply to nevent1q…rt5r

mattoshi on Nostr: Hey #[1]​! I’m certainly not an expert but I found these two good posts on how to ...

Hey cheatgebiet (npub1wr6…ns5u)​! I’m certainly not an expert but I found these two good posts on how to calculate virtual size for a transaction and did it for the situation you mentioned.

https://bitcoin.stackexchange.com/questions/92689/how-is-the-size-of-a-bitcoin-transaction-calculated

https://bitcoin.stackexchange.com/questions/92587/calculate-transaction-fee-for-external-addresses-which-doesnt-belong-to-my-loca/92600#92600


All transactions will have at least 40 weight units
40 (weight unit of constant* fields in a transaction: version 16, num inputs 4, num outputs 4, locktime 16)
+
2 (this is a segwit tx so need to add marker and flag)
+
(3 * 272) (3 p2wpkh inputs)
+
(2 * 124) (1 p2wpkh output)
= 1106 WU (weight units)

1106 / 4 = 276.5
Need to round this up so it equals = 277vB
Author Public Key
npub1hylkjxmhhvzhlyc9stwkxv79mwskfggltr89lm60udqfqen9868qdj76k4