Bitcoin

bitcoin cli – What does “weight” mean in the input_weights parameter of the fundrawtransaction cmd?

I’m trying to use bitcoin-cli. fundrawtransaction If I want to add inputs to a transaction that only has outputs generated by another program, I need to use specific inputs from my wallet. However, input_weights To do that, I need to use parameters (there is no “input” parameter). I don’t know how to set it up. weight at input_weights And I don’t even know what the effect will be.

It looks like there are min(165) and max(400000) values. weight I found it in the code. If I send a value between min and max, it seems like the difference is the fee I pay in the transaction. The question is what weight should I set? Is there a difference between different input weights?

I know the concept of size/weight of a trade. But I don’t know what input weight means and how to set it correctly. Thanks!

Related Articles

Back to top button