Section II: Block Utilization
Bitcoin blocks have a maximum size of 1 MB, although Post-SegWit Bitcoin can exceed that and usually ranges between 1.2 MB to 2 MB . When blocks fill up, fees typically rise due to competition for space. Monitoring block space usage and the number of transactions per block can help predict whether transaction fees will be high in the near future.
Section I: Fee Trend Analysis
To forecast Bitcoin transaction fees, one must first examine historical fee trends. Analyzing past data allows us to assess whether the network is experiencing higher or lower fees based on recent activity. For this analysis, I’ve broken down the data into two timeframes: daily averages over the past month and hourly averages for the past day. The average transaction fees are measured on a scale of satoshi per vbyte.
Section IV: Historical vs. Forecasted Fees
Comparison of historical BTC transaction fee data versus forecasted fees as a gauge for accuracy. Like any dataset, it's important to find a balance between overfitting and underfitting. Overfitting happens when the model becomes too tailored to the training data, failing to generalize well to new data. In our case, the sample size includes training data from the last 30 days and the last 24 hours.
Section III: Forecasted Transaction Fees
By combining the historical fee data and block space utilization, we can forecast the best transaction fee to pay. If block space is full or nearly full, it's a signal to increase the fee to ensure faster confirmation. We will use a 6 hour or 7 day moving average and linear regression forecasting. The line charts in the middle show the forecasts in relation to the 30 day and 24 hour timeframes. Currently timestamps into the future are not supported, but the moving average and linear regression forecasts can easily be extrapolated for future dates and times.
BTC Transaction Fee Forecasting
In the world of cryptocurrency, optimizing transaction costs can make quite a difference. As Bitcoin transaction fees fluctuate based on network demand, users may find it hard to predict the best time and fee to send with their transactions. This is an issue that I was personally faced with several times. Despite selecting the recommended fees, sometimes I would be waiting over an hour with my transaction stuck in limbo. It can get a little scary with a transaction in the Unconfirmed state, where your money is in a sort of purgatory.
To address this issue, I built this simple dashboard to help users get an estimate of the best fee to pay for a timely Bitcoin transaction confirmation, based on historical data and current network conditions.
For a Medium article walk through of how I created this dashboard: HERE
Section V: Summary
This dashboard analyzes Bitcoin transaction fees and block metrics, calculating the average fee per byte, average block size, and average transactions per block. It uses a hourly and daily aggregation, computes a moving average for fees, and applies linear regression to forecast optimal transaction fees. It also adjusts the forecast based on block size for high utilization and transaction congestion, providing an adjusted fee estimate. The results are presented by date and time, with a focus on optimization and fee adjustment based on network conditions.