Socket
Socket
Sign inDemoInstall

bitcoin-best-fee

Package Overview
Dependencies
4
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bitcoin-best-fee

Get recommended bitcoin fees from a variety of endpoints


Version published
Weekly downloads
1
decreased by-80%
Maintainers
2
Install size
88.2 kB
Created
Weekly downloads
 

Readme

Source

bitcoin-best-fee

bitcoin-best-fee aggregates the recommended Bitcoin fees from a variety of endpoints.

Install

npm install bitcoin-best-fee

Usage

const bestFee = require('bitcoin-best-fee')

All methods return a Promise that resolves to the fee in satoshi/byte as a Number.

bestFee.fetchHigh()

Fetch the highest fee from any of the endpoints.

Example:

bestFee.fetchHigh()
.then(fee => console.log(fee))
// -> 240

bestFee.fetchLow()

Fetch the lowest fee from any of the endpoints.

bestFee.fetchMean()

Fetch the mean average fee from all the endpoints.

bestFee.fetchMedian()

Fetch the median average fee from all the endpoints.

Tests

Run npm test to run the linter and basic test suite.

Run npm run test-slow to run additional slow tests. The slow tests are contained in test/slow/. Warning: This takes 2-3m to run; be patient.

License

MIT

Keywords

FAQs

Last updated on 30 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc