This service consists of the componenets:
- BTC Fee Estimate Watcher Back End
- BTC Fee Estimate Charter Front End
- Postgres Database for Watcher
Linux host with docker
For first time install:
Download current last 1 year history of api specific fee estimates (1-2 block/fastest) for mempool.space as CSV from txstats and rename file as per Watcher ENV var CSV_FILE_PATH (default: fee_estimate_history.csv). Rename csv headers to "time", "satsPerByte" (ensure using CSV UTF-8 format to edit file or else expected and actual headers will give mismatch error even if they visually appear same), and place in ./btc-fee-watcher/assets/
If restarting with an existing data volume:
Place the pre-existing volume directory you have at the path specified in your .env file by the var POSTGRES_VOLUME_PATH
Then:
- cd ./deployment/config/
- cp config.sample.prod .env.prod and update .env.prod
- cd ./deployment/scripts
- ./build.prod.sh
- ./start.prod.sh
- cd ./deployment/scripts/
- cp config.sample.local .env.local and update .env.local
- cd ./deployment/scripts
- ./build.local.sh
- ./start.local.sh
Update code in ./btc-fee-watcer/src and ./btc-fee-charter/ to get hot reload.
More info on service components:
- BTC Fee Estimate Watcher Back End
- BTC Fee Estimate Charter Front End