Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bolasblack/btc-utils


https://github.com/bolasblack/btc-utils

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

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](src/estimateTransactionVSizeAfterSign.spec.ts) for more details

- `getOutputDustThreshold`: helps to determine the minimum amount of Bitcoin per output in a bitcoin transaction

Check out the [unit tests](src/getOutputDustThreshold.spec.ts) for more details

- `@c4/btc-utils/btcSignerHelpers`:

- `estimateInputVSizeAfterSign`: use `@scure/btc-signer` to estimate input size

Check out the [unit tests](src/btcSignerHelpers.spec.ts) for more details