Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcoin-best-fee

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin-best-fee

Get recommended bitcoin fees from a variety of endpoints

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 30 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc