Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bolasblack/btc-utils
https://github.com/bolasblack/btc-utils
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bolasblack/btc-utils
- Owner: bolasblack
- Created: 2024-03-24T18:21:45.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-01T13:48:28.000Z (5 months ago)
- Last Synced: 2024-11-06T13:19:26.328Z (2 months ago)
- Language: TypeScript
- Size: 199 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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