Papers
Topics
Authors
Recent
Search
2000 character limit reached

A Model and Estimation of the Bitcoin Transaction Fee

Published 19 Apr 2026 in cs.CE, cs.LG, and econ.EM | (2604.17183v1)

Abstract: Bitcoin transaction fees will become more important as the block subsidy declines, but fee formation is hard to study with blockchain data alone because the relevant queueing environment is unobserved. We develop and estimate a structural model of Bitcoin fee choice that treats the mempool as a market for scarce blockspace. We assemble a novel, high-frequency mempool panel, from a self-run Bitcoin node that records transaction arrivals, exits, block inclusion, fee-bumping events, and congestion snapshots. We characterize the fee market as a Vickery-Clarke-Groves mechanism and derive an equation to estimate fees. In the first-stage we estimate a monotone delay technology linking fee-rate priority and network state to expected confirmation delay. We then estimate how fees respond to that delay technology and to transaction characteristics. We find that congestion is the main determinant of delay; that the marginal value of priority is priced in fees, which is increasing in the gradient of confirmation time reduction per movement up in the fee queue; and that transactor choice of RBF, CPFP, and block conditions have economically important effects on fees.

Summary

  • The paper introduces a structural econometric framework that uses transaction-level mempool data to recover the mapping from fee rate to confirmation delay.
  • The paper employs a two-stage semiparametric estimation strategy combining random forests and isotonic regression to quantify the delay gradient and its impact on fees.
  • The paper finds that dynamic congestion and VCG-like allocation drive fee levels, with practical implications for improving fee recommendation systems.

A Structural Model and Estimation Framework for Bitcoin Transaction Fees

Introduction and Theoretical Framing

This paper presents a structural econometric framework to model Bitcoin transaction fee formation, leveraging transaction-level mempool data and tools from mechanism design. The investigation is motivated by the declining relative importance of Bitcoin's protocol-level block subsidy, necessitating increased reliance on transaction fees as the primary security and liveness incentive for miners. Existing empirical work is hindered by the lack of direct observation of the relevant queueing environment at the time of fee selection, resulting in incomplete models of fee-setting behavior. This work addresses that gap by constructing a high-frequency panel using a self-hosted Bitcoin node, tracking fine-grained mempool and transaction state, and implementing market design theory to empirically recover the mapping from priority (as implemented via fee rate) to confirmation delay.

The theoretical backbone interprets the Bitcoin mempool as a decentralized implementation of a Vickrey-Clarke-Groves (VCG) allocation for priority service, enabling a direct link between observed fees and delay externality pricing. Transaction fees are posited to reflect the product of user impatience, the marginal reduction in confirmation delay per unit increase in fee-based priority, and transaction weight. Figure 1

Figure 1: Empirical relationship between block reward value and aggregate electricity use, illustrating the economic incentives shaping Bitcoin mining and, by extension, transaction fee dynamics.

Data Construction and Measurement

A novel transaction-level mempool panel is assembled, capturing transaction arrival, exit, inclusion (block assignment), fee-bump events (both Replace-By-Fee and Child-Pays-For-Parent), and mempool congestion snapshots at 25-second frequency. The resulting dataset enables precise reconstruction of the queueing environment each transaction actually faced—a requirement for structurally identifying the fee-confirmation delay schedule.

Key variable engineering includes:

  • blockspace utilization (fraction of a block occupied at transaction entry),
  • mempool size and depth (bytes and transaction count),
  • priority percentile (fee rate rank among contemporaneous pending transactions, with tie-aware sorting),
  • CPFP package collapsing (grouping of parent–child transaction chains to compute effective package-level fee rates), and
  • detailed transaction-type annotation.

Econometric Model and Estimation Strategy

The estimation strategy leverages a two-stage, semiparametric approach:

  1. Stage 1: The expected confirmation delay W(p,s)\mathcal{W}(p, s) is flexibly estimated as a function of priority percentile pp and network state ss using random forest regressors. Monotonicity in priority is enforced post-hoc via isotonic regression on forest predictions, and the local slope of the delay schedule (W/p\partial \mathcal{W}/\partial p) is extracted using symmetric finite differences. Figure 2

    Figure 2: Actual vs. predicted log(waittime)\log(\text{waittime}), demonstrating the accuracy of the random forest model for delay prediction.

    Figure 3

    Figure 3: Feature importances from the Random Forest; blockspace utilization and mempool depth dominate confirmation delay.

    Figure 4

    Figure 4: Delay–priority relationship across congestion regimes; delay gradient is actively steep only under congestion.

  2. Stage 2: The log fee rate is regressed on the log delay gradient, transaction controls (including RBF, CPFP, transaction structure), and high-frequency blockstate covariates, with epoch fixed effects to absorb persistent aggregate congestion. User impatience, proxied by future re-spend intervals, is modeled as a monotone spline component but does not drive results.

Key Empirical Results

The model identifies that congestion, as measured by blockspace utilization and mempool volume, is the primary determinant of confirmation delay, and consequently of transaction fees. The delay schedule is steep in high congestion, so marginal increases in priority provide substantial expected delay reductions, and users rationally pay higher fees during such episodes.

Among the strong empirical findings:

  • The coefficient linking log fee rate to the log slope of the delay schedule is highly significant and negative (α1=0.046\alpha_1 = -0.046), indicating that flatter delay schedules (i.e., less gain per unit fee) compel higher fee bidding for prioritized inclusion. Figure 5

    Figure 5: Coefficient estimates with 95% confidence intervals; delay gradient, RBF, and CPFP indicators are all robustly significant.

  • RBF transactions pay a near-doubling premium (exp(0.657)1.93\exp(0.657)\approx1.93) over otherwise similar transactions, confirming that opt-in fee-bumping signals high urgency to the market.
  • CPFP packages pay lower fee rates relative to stand-alone transactions after controlling for apparent priority, reflecting package-related miner selection externalities.
  • Transaction type matters: data-carrying and inscription transactions consistently pay lower fees, signaling lower time-sensitivity.
  • Blockspace utilization, mempool size, and time-since-last-block are all positively, robustly associated with higher fees, as predicted by theory.

Control for user impatience yields a small, directionally consistent but economically minor positive effect on fees, suggesting that observable urgency proxies are weak in explaining cross-sectional fee variation once the delay gradient is accounted for.

Model diagnostics confirm:

  • Strong model fit throughout the transaction fee distribution, with underprediction biases only in the extreme right tail (largest fees).
  • Clustered standard errors at the epoch level, correcting for substantial within-epoch correlation. Figure 6

    Figure 6: Actual vs. predicted log fee rates, confirming strong model fit (10,000 transactions sampled).

    Figure 7

    Figure 7: Residual analysis; left: density with normal overlay, right: residuals vs. fitted values.

Temporal Stability and Out-of-Sample Performance

The model's within-epoch, cross-sectional explanatory power is strong and robust across time windows and out-of-sample splits. The delay-gradient channel consistently adds 7–9 percentage points of R2R^2 within epochs even in strict OOS prediction. However, the model does not explain epoch-level fee regime shifts; aggregate fee level variation across time periods remains largely absorbed by fixed effects, not observable congestion or blockstate features. Figure 8

Figure 8: Out-of-sample R2R^2 learning curves under multiple evaluation protocols; the shadowed wedge quantifies the explanatory contribution of the delay gradient term.

Figure 9

Figure 9: Variance decomposition demonstrates the model's strength is in cross-sectional (within-epoch) explanation rather than prediction of epoch-level mean fees.

Figure 10

Figure 10: Autocorrelation in epoch fixed effects indicates slow reversion of aggregate congestion.

Theoretical and Practical Implications

This work provides empirical validation of mechanism design theory as applied to Bitcoin mempool economics: the decentralized, fee-based, miner-prioritized mempool closely implements a VCG-like allocation and payment mechanism. The most direct implication is that fee-setting can best be understood as the pricing of priority under state-dependent congestion, not merely as a function of aggregate demand, arbitrary willingness-to-pay, or “fee estimation” heuristics.

On a practical level, fee estimation algorithms can be improved by:

  • Focusing on local delay gradients extracted from mempool data,
  • Incorporating institutional transaction details (such as CPFP and RBF flags),
  • Conditioning predictions on contemporaneous blockspace utilization and mempool depth.

This framework enables disciplined counterfactuals under hypothetical congestion states, potentially informing both wallet fee recommendation logic and future protocol design for blockspace pricing and allocation.

On the theoretical side, the finding that impatience, as measured by future output re-spend, is weakly connected to fee variation (contradicting earlier studies on pre-2015 data), points to substantial evolution in user- and application-level behavior and/or in the structure of fee estimation tools over time.

Limitations and Directions for Future Research

The primary empirical limitation is the data window—nine weeks—with little variation in truly extreme congestion regimes. This restricts the potential to identify temporal dynamics or parameter drift in the delay gradient's effect on pricing, and limits extrapolation to future fee-market regimes (e.g., under further subsidy halvings or protocol changes). Continued extension of the transaction-level mempool panel will support more robust time series inference and regime-switching analyses.

A further avenue opened by the approach is structural modeling of block assembler (miner) behavior, including testing for strategic mining (e.g., delayed inclusion, soft-collusion, side-channel fee negotiation), which would appear as systematic violations of the priority-to-delay mapping.

Conclusion

This paper presents a structural estimation of Bitcoin transaction fee formation grounded rigorously in mechanism design and operationalized via a novel high-frequency panel of the mempool state. It demonstrates that dynamic congestion, not static willingness-to-pay, is the principal determinant of fees; that VCG logic is empirically operative; and that institutional design features such as RBF, CPFP, and blockspace metrics meaningfully modulate fee schedules. The approach provides both practical insight for fee estimation strategies and theoretical grounding for understanding blockspace as a congested, priced digital resource.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.