ALIENX
  • ALIENX CHAIN
  • White Paper
    • πŸ’‘Welcome to ALIENX
    • πŸ”οΈALIENX Introduction
      • What is ALIENX?
      • Why ALIENX
    • πŸ”¨ALIENX Protocol
      • Inside ALIENX
      • Gas Fees
      • Fraud Proofs
    • πŸ›ΈGetting Start (AlienX Mainnet)
      • Add AlienX Chain to MetaMask
      • Bridge Assets to AlienX
    • πŸš€Getting Start (HAL Testnet)
      • Add Hal Chain to MetaMask
      • Bridge Assets to Hal
      • Receive Faucet Funds
    • πŸͺ™Tokenomics
    • πŸ—ΊοΈRoadmap
    • πŸ›οΈBackers and ECO Partners
  • ALIENX Activities
    • πŸ‘»ALIENX Explorer Pass
    • πŸ•Social Airdrop
    • 🦠AI Node Sale
    • β˜„οΈStaking Season
  • ALIENX Mainnet
    • 🏭ALIENX Mainnet Quest
    • πŸŽͺALIENX Park
    • ☎️Mainnet Voyage Q&A
    • πŸͺ‡AIX Launch Announcement
      • AIX TGE Timeline
      • AIX Token Address
      • Who can claim $AIX?
      • How to Claim your $AIX?
  • ALIENX HAL Testnet
    • β›ΊHAL Testnet Quest
    • πŸ“©Apply to join HAL Testnet
  • Developer
    • πŸ•ΉοΈDeploy contract on AlienX mainnet
      • Foundry
      • Hardhat
      • Remix
    • πŸ’»Deploy contract on Hal Testnet
      • Foundry
      • Hardhat
      • Remix
  • Support
    • πŸ”—Official Links
    • πŸ“FAQ
      • Node Sale
      • Node Pre-Book
      • Social Airdrop
      • AEP Drop
  • $AIX Airdrop
    • 🎁$AIX Airdrop
Powered by GitBook
On this page
  • Gas Price Floor
  • Estimating Gas
  • Tips in L2
  • Gas Estimating Retriable
  1. White Paper
  2. ALIENX Protocol

Gas Fees

PreviousInside ALIENXNextFraud Proofs

Last updated 1 year ago

There are two parties a user pays for when submitting a transaction:

  • The poster, if reimbursable, for L1 resources such as the L1 calldata needed to post the tx

  • The network fee accounts for L2 resources, which include computation, storage, and other burdens L2 nodes must bare to service the tx

The L1 component is the product of the transaction's estimated contribution to its batch's size β€” computed using Brotli on the transaction by itself β€” and the L2's view of the L1 data price, a value which dynamically adjusts over time to ensure the batch-poster is ultimately fairly compensated. For details, see .

The L2 component consists of the traditional fees Geth would pay to stakers in a vanilla L1 chain, such as the computation and storage charges applying the state transition function entails. ArbOS charges additional fees for executing its L2-specific , whose fees are dynamically priced according to the specific resources used while executing the call.

Gas Price Floor

The L2 gas price on a given AlienX chain has a set floor, which can be queried via 's getMinimumGasPrice method (currently 0.01 gwei on AlienX).

Estimating Gas

Calling an AlienX Node's eth_estimateGas RPC gives a value sufficient to cover the full transaction fee at the given L2 gas price; i.e., the value returned from eth_estimateGas multiplied by the L2 gas price tells you how much total Ether is required for the transaction to succeed. Note that this means that for a given operation, the value returned by eth_estimateGas will change over time (as the L1 calldata price fluctuates.)

Tips in L2

The sequencer prioritizes transactions on a first-come first-served basis. Because tips do not make sense in this model, they are ignored. AlienX users always just pay the base fee regardless of the tip they choose.

Gas Estimating Retriable

When a transaction schedules another, the subsequent transaction's execution when estimating gas via the node's RPC. A transaction's gas estimate, then, can only be found if all the transactions succeed at a given gas limit. This is especially important when working with retryables and scheduling redeem attempts.

Because a call to donates all of the call's gas, doing multiple tasks requires limiting the amount of gas provided to each subcall. Otherwise, the first will take all of the gas and force the second to necessarily fail irrespective of the estimation's gas limit.

Gas estimation for Retryable submissions is possible via the and similarly requires the auto-redeem attempt to succeed.

πŸ”¨
L1 Pricing
precompiles
ArbGasInfo
will be included
redeem
NodeInterface