@c4/btc-utils
v0.6.2
Published
a utility library that provides helper functions for bitcoin transactions
Readme
btc-utils
btc-utils is a utility library that aims to provide helper functions for bitcoin transactions.
Goals:
- Dependency-free, as far as possible
- Easy to read and understand, provide links to corresponding information in the code whenever possible
Modules
@c4/btc-utils:estimateTransactionVSizeAfterSign: helps to estimate the virtual size (vSize) of a bitcoin transaction before users sign it Check out the unit tests for more detailsgetOutputDustThreshold: helps to determine the minimum amount of Bitcoin per output in a bitcoin transaction Check out the unit tests for more details
@c4/btc-utils/estimationInputShortcuts: provides shortcuts of several common input types for estimation, checkout the unit tests for usages@c4/btc-utils/btcSignerHelpers:estimateInputVSizeAfterSign_2: use@scure/btc-signerto estimate input size and returnEstimationInputtype data Check out the unit tests for more details- ~~
estimateInputVSizeAfterSign~~ (Deprecated): use@scure/btc-signerto estimate input size Check out the unit tests for more details
