Open arik-so opened 9 months ago
Ooh, that sounds like a good idea.
I'll see if I can whip something up later.
If anyone wants to work on it let me know.
Basically:
Questions:
Check out the PR.
Wow, that was fast! Do answer your second question: I think sat/vByte is probably the most convenient.
I guess it really doesn't matter. We can change it later.
Just check it out and make sure it jives with the Core code.
By the way, thank you so much for implementing this! Shall I close this issue?
No it'll be closed when we merge it.
Sometimes when parsing transactions I need to check whether an output value is too low for a given output type. Would you consider adding some sort of utility, maybe to
bitcoin.address
, that would allow me to look up the dust threshold based on the output script? Perhapsbitcoin.address.dustThresholdFromOutputScript()
or something similar?