- run
make environment
- set up an Infura account at https://app.infura.io/login
- copy the .env.example to a .env file, and add the details from Infura
- run
make start
- in browser, navigate to http://localhost:8080/api/eth-mainnet/estimate-fee
- run
make test
The EthService subscribes to NewBlockHeaders which is very reliable, but fetching full transactions details for a block will occasionally fail. As a result the API and service have both a latestBlockNumber and isFeeUpdated. If the full details for a block fails to be retrieved, then isFeeUpdated will be false, reflecting that stated fees are not attributed to the latest observed block, but some previous bock.