-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Dust threshold value based on output script #2009
Comments
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?The text was updated successfully, but these errors were encountered: