Cointime

Download App
iOS & Android

How to purchase Ethereum GAS in advance

From Ethresearch by web3skeptic

Abstract

This topic introduces a method for purchasing gas on Ethereum. Technically it is a fully on-chain Ethereum gas futures market. The volatility of gas prices, primarily driven by network demand fluctuations, significantly obstructs user experience on Ethereum due to unpredictable costs. This solution aims to mitigate that issue.

Protocol Description

General

The protocol users might be divided into to parties, gas purchasers (Purchaser) and gas providers (Executors)

The general protocol workflow has these stages:

  1. Purchaser: Listing order
  2. Executor: Accepting order
  3. Purchaser: Requesting transaction execution
  4. Executor: Executing transaction
  5. Anyone: Liquidating executor

Listing order

It is required to place order conditions onchain regarding the execution timeframe, gas price, and the expected security from the Executor, also the Purchaser locks the reward tokens responsible of paying the gas: gasCost * gasAmount.

The GasOrder should include such fields:

struct GasOrder { uint256 gasAmount; // The amount of Gas to book for future executions uint256 executionPeriodStart; // Start timestamp when it is possible to use the gas within the order uint256 executionPeriodDeadline; // End timestamp when it is possible to use the gas within the order uint256 executionWindow; // This variable defines a window, measured in blocks, within which a // transaction must be executed. This constraint is designed to optimize timing and prevent delays, while // also safeguarding against the exploitation of gas price fluctuations by malicious actors. TokenTransfer gasCost; // The cost of one Gas unit TokenTransfer guarantee; // The guarantee security required from the Executor }

Accepting order

Some Executor accept the conditions of the GasOrder, and locks the guarantee. The guarantee security is execpected to be proportional to the purchased amount of Gas.

Requesting transaction execution

When the GasOrder execution timeframe comes, the user might request transaction execution by signing the data structure with the transaction details.

Message { address from; uint256 nonce; uint256 gasOrder; // number of the employed order uint256 deadline; // deadline of the msg execution, should be within the range of order execution address to; // the contract which is being called uint256 gas; // gas limit to spend uint256 tips; // tips to the party which pushes the tx request onchain bytes data; // execution request details bytes signature; // the signature by the sender }

After the transaction is signed the hash of it should be published onchain. It might be done by transaction requester itself, or by anyone else. To incentives the posting the transaction request onchain the signer specifies the tips. The tips represents the Gas within the GasOrder which will be burned and the respective share of reward will be directed to the transaction request submitter.

Executor takes the signed data and calls the to contract from function within the protocol which executes the call with the data from the Message. Consecuently the call unlocks the share of the reward and the guarantee for the Executor.

If the transaction is not Executed because it is not profitable for the Executor than the Executor might be liquidated, it might be implemented in few ways, centralized and decentralized, lets review the decentralized version.

Decentralized liquidation logic

During the transaction request, the transaction hash is posted on-chain, also the signature and remaining Message data posted as a calldata to be publicly available.

If the Executor fails to execute the transaction before the Message.deadline, anyone can do so by providing the necessary data from the Message before the deadline + CONSTANT_LIQUIDATION_TIME. In return, the executor’s guarantee is partially forfeited, and the Liquidator requester receives a reward.

Bottlenecks

Executor incentive

Executor incentives rely on adjusting GasCost to accommodate risk. As gas prices are unpredictable, Executors mitigate risks by charging extra. This flexible pricing model, determined by Executors, may evolve from sporadic agreements to a more standardized market, resulting in better price averages over time.

Gas consumption

The protocol’s viability hinges on surpassing a certain threshold, as it necessitates gas for order publication, acceptance, signature verification, and transaction execution.

Split of liquidity

Tokenizing each Gas order is straightforward, yet trading shares between orders poses a challenge due to their differing parameters. While securitization of long-term orders seems a plausible solution, preventing liquidity fragmentation remains elusive at present.

Lock of guarantee

Executors must lock guarantees to deter liquidation risks, yet this restricts their flexibility. The locked guarantee could otherwise be utilized for liquidity elsewhere to generate yield. One potential solution is to lock tokens which represent shares in farming pools, enabling yield generation while locked. However, this introduces additional risks for gas Purchasers parties, as farming protocols entail additional security assumptions and associated risks.

P.S. I’m really interested to get the feedback on the proposed mechanism

Comments

All Comments

Recommended for you

  • Morgan Stanley Increases Bitcoin Holdings for Three Consecutive Days, Total Holdings Exceed 7,800 BTC

    On September 12, Morgan Stanley increased its Bitcoin holdings for three consecutive days through its spot Bitcoin exchange-traded fund MSBT, investing $15.81 million to acquire approximately 203.45 BTC. The total holdings now amount to 7,855 BTC, valued at over $600 million.

  • Anthropic IPO Approaches, Off-Market Valuation Peaks and Retracts to $2.159 Trillion

    On September 12, HIP-3 market deployer Entropy launched the Anthropic Pre-IPO market on Hyperliquid. As the Anthropic IPO draws near, its market valuation peaked at over $2.3 trillion on the platform on the 9th before retracting to $2.159 trillion. As of the time of this report, the pre-market contract volume for Anthropic reached $28.19 million, with a trading volume of $6.74 million. Additionally, OpenAI's pre-market contract valuation on Entropy is currently reported at $164 million, with a volume of $7.67 million.

  • China to Assume BRICS Presidency in 2027

    On September 12, during the first phase of the 18th BRICS Leaders' Meeting, President Xi Jinping announced that China will assume the BRICS presidency in 2027 and host the 19th BRICS Leaders' Meeting. (CCTV News)

  • Fujitsu Japan to Export AI Chips to the U.S. and Asia

    On September 12, Fujitsu Japan will export AI chips to the United States and Asia.

  • Explosive Growth in Token Demand in China, Expected to Reach 1 Trillion by 2026

    On September 12, according to CCTV, the China Telecom Research Institute released the "Research Report on AI Infrastructure Development in the Era of Intelligent Agents (2026)". The report indicates that as the focus of the artificial intelligence industry shifts from competition in large models and computing power to the large-scale implementation and monetization of intelligent agents, the demand for tokens in China has shown explosive growth. Rao Shaoyang, director of the Institute of Industry and Enterprise Strategy at the China Telecom Research Institute, stated that the annual consumption of tokens in China is expected to reach 1 trillion by 2026, and exceed 35 trillion by 2030, with a compound annual growth rate approaching 12 times.

  • China Mobile Launches Trusted AI Computing

    On September 12, at the main forum of the 2026 National Computing Conference, China Mobile officially launched Trusted AI Computing (AITC). It is reported that AITC is based on a fully domestic heterogeneous computing foundation of mobile cloud, integrating core technologies such as confidential computing, domestic encryption, and privacy protection for information flow. It provides intelligent multi-form confidential computing and confidential tokens, constructing an integrated AI security solution that covers the entire lifecycle of AI training, inference, and data usage in the cloud, allowing customers to use public cloud services as if they were using private clouds. This effectively addresses the common pain points of data sensitivity in industries such as finance, government, industry, healthcare, and academic research, where privacy data is prone to leakage, model assets are easily stolen, and there is a lack of trust in computing environments.

  • Sequoia Capital Leads New Funding Round for Mecka AI, Valuation Approaches $500 Million

    According to two informed sources, humanoid robot data startup Mecka AI is nearing the completion of a new funding round led by Sequoia Capital, with a valuation of approximately $500 million. The scale and specific terms of this funding round have yet to be determined and may still change. Mecka AI primarily collects data on human daily movements through body sensors and smartphones, using this data to train humanoid robots and other robotic systems. The company was founded in 2024 and completed a $60 million funding round in June of this year, led by Framework Ventures, with participation from Menlo Ventures, SV Angel, and Kindred Ventures. Notably, the founding team of Mecka AI previously worked mainly in food fintech and cryptocurrency startups, rather than in the robotics industry.

  • Sequoia Capital Leads New Funding Round for Mecka AI, Valuation Approaches $500 Million

    According to two informed sources, humanoid robot data startup Mecka AI is nearing the completion of a new funding round led by Sequoia Capital, with a valuation of approximately $500 million. The scale and specific terms of this funding round have yet to be determined and may still change. Mecka AI primarily collects data on human daily movements through body sensors and smartphones, using this data to train humanoid robots and other robotic systems. The company was founded in 2024 and completed a $60 million funding round in June of this year, led by Framework Ventures, with participation from Menlo Ventures, SV Angel, and Kindred Ventures. Notably, the founding team of Mecka AI previously worked in the fields of food tech and cryptocurrency, rather than having a background in robotics.

  • US Spot Ethereum ETF Sees Net Inflow of $216.4 Million

    On September 12, according to monitoring data from Farside Investors, the US spot Ethereum ETF experienced a net inflow of $216.4 million yesterday.

  • US Spot Bitcoin ETF Sees $13.2 Million Outflow Yesterday

    On September 12, according to monitoring data from Farside Investors, the US spot Bitcoin ETF experienced a net outflow of $13.2 million yesterday.