5
4
I define marginal fee cost as the number of bytes required to add that UTXO as an input to a TX multiplied by the satoshi/byte rate of the blocks being found.
So for a normal p2pkh UTXO, this would currently be roughly 180 bytes (number of bytes this UTXO would take up in a TX as an input) * 200 satoshi/byte, or 36000 satoshi. So the answer would be however many UTXOs exist that are 36000 satoshi or below for p2pkh. Essentially, I want to know how many UTXOs are currently in the UTXO set that would not be worth redeeming should the fees be above a certain satoshi/byte.
I would like this data at 100 satoshi/byte, 200 satoshi/byte, 300 satoshi/byte, 500 satoshi/byte and 1000 satoshi/byte.
1
Interesting question! Note, that a P2PKH input is 147 or 148 byte: How big is the input of a P2PKH transaction?
– Murch – 2017-03-07T10:16:22.2601Yes, that's for compressed pubkey. Uncompressed would be 32 more, which is 179 or 180, so I suppose it's impossible to tell which is which. Same with p2sh, which can have any redeemScript with compressed or uncompressed keys. An estimate is fine, though. – Jimmy Song – 2017-03-07T13:27:17.913