• Home
  • Search
  • FunRedisp: Reordering Function Dispatch in Smart Contract to Reduce Invocation Gas Fees
  • Cite Icon3
  • https://doi.org/10.1145/3650212.3652146Copy DOI Icon

FunRedisp: Reordering Function Dispatch in Smart Contract to Reduce Invocation Gas Fees

  • Sep 11, 2024
  • Yunqi Liu +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Smart contracts mostly written in Solidity are Turing-complete programs executed on the blockchain platforms such as Ethereum. To prevent resource abuse, a gas fee is required when users deploy or invoke smart contracts. Although saving gas consumption has received much attention, no work investigates the effect of function dispatch on the invocation gas consumption. In this paper, after demystifying how the function dispatch affects the invocation gas consumption, we present FunRedisp, a bytecode refactoring method and an open-source tool, to reduce the overall invocation gas consumption of smart contracts. At the source code level, FunRedisp initially identifies hot functions in a smart contract that have a big chance to be invoked, and then move them to the front of the function dispatch at the bytecode level. We implement FunRedisp and evaluate it on 50 real-world smart contracts randomly selected from Ethereum. The experimental results demonstrate that FunRedisp can save approximately 125.17 units of gas per transaction with the compilation overhead increased by only 0.37 seconds.

Similar Papers
  • Research Article
  • Citations63

IContractML 2.0: A domain-specific language for modeling and deploying smart contracts onto multiple blockchain platforms

  • Apr 01, 2022
  • Information and Software Technology
  • Mohammad Hamdaqa +2
  • Research Article
  • Citations16

A preliminary study on artificial intelligence oracles and smart contracts: A legal approach to the interaction of two novel technological breakthroughs

  • Oct 19, 2023
  • Computer Law & Security Review
  • Vasiliki Papadouli +1
  • Conference Article
  • Citations1

Transformation from MVC Applications to Smart Contracts

  • Dec 01, 2022
  • Qiqi Gu +2
  • PDF
  • Research Article
  • Citations1

Application of Smart Contracts and Blockchain Platforms in Cross-Border Oil and Gas Transactions: Aggravation of Conflict-of-Laws Problem

  • Jul 11, 2020
  • Actual Problems of Russian Law
  • D V Andriyanov
  • Book Chapter
  • Citations7

A Three-Layered Approach for Designing Smart Contracts in Collaborative Processes

  • Jan 01, 2019
  • Ada Bagozi +4
  • Book Chapter
  • Citations7

Introduction to Blockchain and Smart Contract – Principles, Applications, and Security

  • Mar 21, 2022
  • Adarsh Singh +4
  • Research Article
  • Citations17

Adopting Artificial Intelligence to Strengthen Legal Safeguards in Blockchain Smart Contracts: A Strategy to Mitigate Fraud and Enhance Digital Transaction Security

  • Aug 27, 2024
  • Journal of Theoretical and Applied Electronic Commerce Research
  • Hassen Louati +6
  • Research Article
  • Citations1

Impact of networkization of the economy upon changes in the provisions of competition law (on the example of blockchain and smart contracts in the area of advertising and intellectual property law)

  • Sep 01, 2020
  • Юридические исследования
  • Irina Viktorovna Ermakova
  • Conference Article
  • Citations2

A Semantic-Based Smart Contract Defect Detection General Platform

  • Aug 20, 2022
  • Xiaoqiang Wang +2
  • Research Article

Cryptography in Smart Contracts: Ensuring Integrity and Trustworthiness

  • Apr 30, 2023
  • American Journal Of Cryptography And Network Security
  • Prof Michael Chen
  • Conference Article
  • Citations1

The Development Off-Chain Blockchain Smart Contract Model on MSCWR SmartBox

  • Nov 24, 2022
  • Surjandy +4
  • Research Article
  • Citations21

Vulnerable smart contract function locating based on Multi-Relational Nested Graph Convolutional Network

  • Jun 09, 2023
  • Journal of Systems and Software
  • Haiyang Liu +3
  • Conference Article
  • Citations18

Smart-Graph: Graphical Representations for Smart Contract on the Ethereum Blockchain

  • Mar 01, 2021
  • Giuseppe Antonio Pierro
  • Conference Article
  • Citations6

Grey-box Fuzzing Based on Execution Feedback for EOSIO Smart Contracts

  • Dec 01, 2022
  • Wenyin Li +5
  • Research Article
  • Citations49

Automatic Generation of Ethereum-Based Smart Contracts for Agri-Food Traceability System

  • Jan 01, 2022
  • IEEE Access
  • Lodovica Marchesi +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.