Post
Topic
Board Bitcoin Technical Support
Re: Search statistics about necessary transaction fees within the next x blocks?
by
pooya87
on 13/12/2021, 08:43:22 UTC
x * 149 + y * 34 + 1 * 149 +-10 =  .... vBytes
Correct?
This is a very simplified equation that only works for very simple cases with legacy inputs and outputs. Things are much more complicated when it comes to calculating transaction sizes these days and it mainly depends on the type of the output that is being spent. There should at least be 20 equations or better yet a library that would compute serialized size on demand.