我的交易完成了吗?以太坊区块链平台事务处理时间的实证研究
Is my transaction done yet? An empirical study of transaction processing times in the Ethereum Blockchain Platform
摘要:
以太坊是开发区块链驱动应用程序的最受欢迎的平台之一。这些应用程序被称为Dapps。在设计Dapp时,开发人员需要将应用程序前端捕获的请求转换为一个或多个智能合约交易。开发人员需要为这些交易支付费用,他们支付的越多(即,天然气价格越高),交易可能处理得越快。因此,开发人员需要优化成本(交易费用)和用户体验(事务处理时间)之间的平衡。已经开发了在线服务以向交易发行方(例如,Dapp开发人员),估计在给定的天然气价格下处理交易需要多长时间。这些估算服务在以太坊领域至关重要,Metamask等几个流行的钱包都依赖于它们。然而,他们的准确性还没有经验研究到目前为止。在本文中,我们量化了以太坊中的事务处理时间,调查了处理时间与天然气价格之间的关系,并确定了实践状态估计服务的准确性。我们发现,交易的处理时间中位数为57秒,90%的交易在8米内处理。更高的天然气价格导致更快的事务处理时间,收益递减。特别是,我们没有观察到昂贵和非常昂贵的交易之间的处理时间的实际差异。在处理时间估计服务的准确性方面,我们注意到它们是等效的。然而,当按天然气价格对交易进行分层时,Etherscan的Gas Tracker是非常便宜和廉价交易的最准确的估计服务。EthGasStation的Gas Price API是最准确的估算服务,适用于常规、昂贵和非常昂贵的交易。
英文摘要:
Ethereum is one of the most popular platforms for the development of blockchain-powered applications. These applications are known as Dapps. When engineering Dapps, developers need to translate requests captured in the front-end of their application into one or more smart contract transactions. Developers need to pay for these transactions and, the more they pay (i.e., the higher the gas price), the faster the transaction is likely to be processed. Therefore developers need to optimize the balance between cost (transaction fees) and user experience (transaction processing times). Online services have been developed to provide transaction issuers (e.g., Dapp developers) with an estimate of how long transactions will take to be processed given a certain gas price. These estimation services are crucial in the Ethereum domain and several popular wallets such as Metamask rely on them. However, their accuracy has not been empirically investigated so far. In this paper, we quantify the transaction processing times in Ethereum, investigate the relationship between processing times and gas prices, and determine the accuracy of state-of-the-practice estimation services. We find that transactions are processed in a median of 57s and that 90% of the transactions are processed within 8m. The higher gas prices result in faster transaction processing times with diminishing returns. In particular, we observe no practical difference in processing time between expensive and very expensive transactions. In terms of accuracy of processing time estimation services, we note that they are equivalent. However, when stratifying transactions by gas prices, Etherscan's Gas Tracker is the most accurate estimation service for very cheap and cheap transaction. EthGasStation's Gas Price API, in turn, is the most accurate estimation service for regular, expensive, and very expensive transactions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。