IDEAS home Printed from https://ideas.repec.org/a/spr/jcomop/v49y2025i1d10.1007_s10878-024-01249-0.html
   My bibliography  Save this article

Optimal blocks for maximizing the transaction fee revenue of Bitcoin miners

Author

Listed:
  • Mohsen Alambardar Meybodi

    (University of Isfahan
    Institute for Research in Fundamental Sciences (IPM))

  • Amir Goharshady

    (Hong Kong University of Science and Technology)

  • Mohammad Reza Hooshmandasl

    (University of Mohaghegh Ardabili)

  • Ali Shakiba

    (University of New South Wales)

Abstract

In this work, we consider a combinatorial optimization problem with direct applications in blockchain mining, namely finding the most lucrative blocks for Bitcoin miners, and propose optimal algorithmic solutions. Our experiments show that our algorithms increase the miners’ revenues by more than a million dollars per month. Modern blockchains reward their miners in two ways: (i) a base reward for each block that is mined, and (ii) the transaction fees of those transactions that are included in the mined block. The base reward is fixed by the respective blockchain’s protocol and is not under the miner’s control. Hence, for a miner who wishes to maximize earnings, the fundamental problem is to form a valid block with maximal total transaction fees and then try to mine it. Moreover, in many protocols, including Bitcoin itself, the base reward halves at predetermined intervals, hence increasing the importance of maximizing transaction fees and mining an optimal block. This problem is further complicated by the fact that transactions can be prerequisites of each other or have conflicts (in case of double-spending). In this work, we consider the problem of forming an optimal block, i.e. a valid block with maximal total transaction fees, given a set of unmined transactions. On the theoretical side, we first formally model our problem as an extension of Knapsack and then show that, unlike classical Knapsack, our problem is strongly NP-hard. We also show a hardness-of-approximation result. As such, there is no hope in solving it efficiently for general instances. However, we observe that its real-world instances are quite sparse, i.e. the transactions have very few dependencies and conflicts. Using this fact, and exploiting three well-known graph sparsity parameters, namely treedepth, treewidth and pathwidth, we present exact linear-time parameterized algorithms that are applicable to the real-world instances and obtain optimal results. On the practical side, we provide an extensive experimental evaluation demonstrating that our approach vastly outperforms the current Bitcoin miners in practice, obtaining a significant per-block average increase of 11.34 percent in transaction fee revenues which amounts to almost one million dollars per month.

Suggested Citation

  • Mohsen Alambardar Meybodi & Amir Goharshady & Mohammad Reza Hooshmandasl & Ali Shakiba, 2025. "Optimal blocks for maximizing the transaction fee revenue of Bitcoin miners," Journal of Combinatorial Optimization, Springer, vol. 49(1), pages 1-27, January.
  • Handle: RePEc:spr:jcomop:v:49:y:2025:i:1:d:10.1007_s10878-024-01249-0
    DOI: 10.1007/s10878-024-01249-0
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10878-024-01249-0
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10878-024-01249-0?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. An, Jaehyung & Mikhaylov, Alexey & Chang, Tsangyao, 2024. "Relationship between the popularity of a platform and the price of NFT assets," Finance Research Letters, Elsevier, vol. 61(C).
    2. Jaehyung An & Alexey Mikhaylov & Sang-Uk Jung, 2020. "The Strategy of South Korea in the Global Oil Market," Energies, MDPI, vol. 13(10), pages 1-8, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Dinçer, Hasan & Yüksel, Serhat & An, Jaehyung & Mikhaylov, Alexey, 2024. "Quantum and AI-based uncertainties for impact-relation map of multidimensional NFT investment decisions," Finance Research Letters, Elsevier, vol. 66(C).
    2. Dadan Rahadian & Anisah Firli & Hasan Dinçer & Serhat Yüksel & Alexey Mikhaylov, 2025. "Analysing the financial innovation-based characteristics of stock market efficiency using fuzzy decision-making technique," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 11(1), pages 1-17, December.
    3. An, Jaehyung & Mikhaylov, Alexey & Chang, Tsangyao, 2024. "Relationship between the popularity of a platform and the price of NFT assets," Finance Research Letters, Elsevier, vol. 61(C).
    4. Zhoufu Yan & Shuntian Sui & Fangwei Wu & Li Cao, 2023. "The Impact of Outward Foreign Direct Investment on Product Quality and Export: Evidence from China," Sustainability, MDPI, vol. 15(5), pages 1-13, February.
    5. Ryszard Zwierzchowski & Olgierd Niemyjski & Marcin Wołowicz, 2022. "Energy Savings Analysis for Operation of Steam Cushion System for Sensible Thermal Energy Storages," Energies, MDPI, vol. 15(1), pages 1-15, January.
    6. Pavel Baboshkin, 2020. "Strategic Energy Partnership between Russia and China," International Journal of Energy Economics and Policy, Econjournals, vol. 10(5), pages 158-163.
    7. Ioana Gutu & Camelia Nicoleta Medeleanu, 2023. "Assessing Teleworkforce and Electronic Leadership Favorable for an Online Workforce Sustainability Framework by Using PLS SEM," Sustainability, MDPI, vol. 15(18), pages 1-32, September.
    8. Ivan Udalov, 2021. "The Transition to Renewable Energy Sources as a Threat to Resource Economies," International Journal of Energy Economics and Policy, Econjournals, vol. 11(3), pages 460-467.
    9. Pavel Baboshkin & Mafura Uandykova, 2021. "Multi-source Model of Heterogeneous Data Analysis for Oil Price Forecasting," International Journal of Energy Economics and Policy, Econjournals, vol. 11(2), pages 384-391.
    10. Xenia Tabachkova, 2021. "Consequences of Oil Supply and Demand on the Electricity Market: Coronavirus Effect," International Journal of Energy Economics and Policy, Econjournals, vol. 11(4), pages 573-580.
    11. Chong Guan & Ding Ding & Jing Ren & Jiancang Guo, 2024. "Unveiling the aesthetic “wow factor”: The role of aesthetic incongruity and image quality in NFT art valuation with computer vision," Electronic Markets, Springer;IIM University of St. Gallen, vol. 34(1), pages 1-16, December.
    12. Md. Mominur Rahman & Alexey Mikhaylov & Ishaq Bhatti, 2024. "The impact of investment in human capital on investment efficiency: a PLS-SEM approach in the context of Bangladesh," Quality & Quantity: International Journal of Methodology, Springer, vol. 58(5), pages 4959-4986, October.
    13. Wang, Mei-Chih & Chang, Tsangyao & Mikhaylov, Alexey & Linyu, Jia, 2024. "A measure of quantile-on-quantile connectedness for the US treasury yield curve spread, the US Dollar, and gold price," The North American Journal of Economics and Finance, Elsevier, vol. 74(C).
    14. Thomas Burkhardt & Diana Stepanova & Leonid Ratkin & Ismail Ismailov & Oleg Lavrushin & Natalia Sokolinskaya & Mir Sayed Shah Danish & Tomonobu Senjyu & Serhat Yuksel & Hasan Dincer, 2021. "Introduction of Biofuels as a Way of Solving Ecological Problems," International Journal of Energy Economics and Policy, Econjournals, vol. 11(2), pages 187-193.
    15. Pierre Failler, 2021. "Special Issue on Global Market for Crude Oil," Energies, MDPI, vol. 14(4), pages 1-2, February.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:jcomop:v:49:y:2025:i:1:d:10.1007_s10878-024-01249-0. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.