Skip to content
bolasblackPublic

About

Bitcoin transaction utilities offering vsize estimators, dust threshold helpers, and some helper functions

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

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 details

    • getOutputDustThreshold: 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-signer to estimate input size and return EstimationInput type data Check out the unit tests for more details
    • estimateInputVSizeAfterSign (Deprecated): use @scure/btc-signer to estimate input size Check out the unit tests for more details

About

Bitcoin transaction utilities offering vsize estimators, dust threshold helpers, and some helper functions

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages