Skip to content

Bitcoin fee estimates directly from your full node

Notifications You must be signed in to change notification settings

jb55/bitcoin-fees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

bitcoin-fees

Get bitcoin fee estimates directly from your full node

Example

$ fees 100 e 300
feerate     blocks  hours  fiat
0.00021095  9       1.5    0.513203379
0.00022140  8       1.33   0.5386263479999999
0.00064270  6       1      1.563573414
0.00100261  4       0.66   2.4391696601999993
0.00149164  2       0.33   3.6288916248
  • feerate: the feerate for settxfee, eg: bitcoin-cli settxfee 0.00021095
  • blocks: the estimated number of blocks until first confirmation
  • hours: the estimated number of hours until first confirmation
  • fiat: the estimated fee (in fiat) based on current BTC/USD exchange rate

Installation

Copy fees to your bin path

Required dependencies:

* bitcoin-cli, running bitcoind
* curl, sort, sed, column, jq

Usage

All arguments are optional

$ fees [blocks] [estimate_mode] [tx_size_bytes] [fiat_price]
  • blocks: number of blocks to look at for fee estimate
  • tx_size_bytes: size of the transaction (default 226)
  • estimate_mode: c or e for conservative or economical
  • fiat_price: current BTC price in fiat currency

About

Bitcoin fee estimates directly from your full node

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages