0.5.0 • Published 1 year ago
@c4/btc-utils v0.5.0
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 itCheck out the unit tests for more details
getOutputDustThreshold: helps to determine the minimum amount of Bitcoin per output in a bitcoin transactionCheck out the unit tests for more details
@c4/btc-utils/btcSignerHelpers:estimateInputVSizeAfterSign: use@scure/btc-signerto estimate input sizeCheck out the unit tests for more details