E Money Network
  • Introduction to E Money Network
  • Add E Money Network to Metamask
  • Wallet Integration
  • E-Money Tokens
  • E Money Network Mainnet and Testnet Explorer​
  • E Money Network Faucet
  • E Money Network Whitelist
  • Launching Your Dapp on E Money Network
    • Developing and Deploying Contracts​
    • Contract Verification​
    • Contract Security Checks
  • Validating on E Money Network
    • Validator nodes
    • How to run a validator node on E Money Network
    • Running Validator Node
    • EMYC Token’s Utility & Purpose
    • Install Validator node​
  • Tendermint & EVMOS
    • ABCI Overview
      • Intro to ABCI
      • Motivation
    • Gas & Fees
      • How are Gas and Fees Handled on E Money Network?​
      • Gas calculation and Transaction execution on E Money Network
    • Keyring
    • Signing
    • Transactions
    • A Note on Determinism
    • Consensus Overview
  • E Money Card FAQs
    • Is a Know Your Customer (KYC) process required to obtain an E Money Card?
    • What details are required for the KYC process?
    • Do I need to create an E Money Wallet to order an E Money Card?
    • What happens if I lose my seed phrase?
    • What happens if I forget my password?
    • How do I order an E Money Card, and are there any costs?
    • Can I have the card shipped to a different address than the one I provided during KYC?
    • My card has been delivered, what’s next?
    • What should I consider before using the E Money Card for payments?
    • Where can I use the E Money Card?
    • Can I add the E Money Card to online payment services like Google Pay and Apple Pay?
    • Which countries’ citizens are eligible to apply for an E Money Card?
    • Are there any fees I should be aware of as a user?
    • How do taxes apply when using the E Money Card?
  • E Money Card Fees
  • Branding and Logos
Powered by GitBook
On this page
  1. Tendermint & EVMOS
  2. Gas & Fees

Gas calculation and Transaction execution on E Money Network

PreviousHow are Gas and Fees Handled on E Money Network?​NextKeyring

Last updated 3 months ago

  1. Nodes execute the previous block and run the EndBlock hook. As part of this hook, the FeeMarket (EIP-1559) module tracks the total TransientGasWanted from the transactions on this block. This will be used for the next block’s BaseFee.

  2. Nodes receive transactions for a subsequent block and gossip these transactions to peers. These can be sorted and prioritised by the included fee price (using EIP-1559 fee priority mechanics for EVM transactions -), to be included in the next block

  3. Nodes run BeginBlock for the subsequent block. The FeeMarket module calculates the BaseFee () to be applied for this block using the total GasWanted from the previous block. The Distribution module the previous block’s fee rewards to validators and delegators

  4. For each valid transaction that will be included in this block, nodes perform the following:

    An AnteHandler process corresponding to the transaction type is initiated. This process:

    • Performs basic transaction validation.

    • Verifies the fees provided are greater than the global and local minimum validator values and greater than the BaseFee calculated (For Ethereum transactions).

    • Preemptively consumes gas for the EVM transaction.

    • Deducts the transaction fees from the user and transfers them to the fee_collector module.

    • Increments the TransientGasWanted in the current block, to be used to calculate the next block’s BaseFee.

    Then, for standard Cosmos Transactions, nodes:

    • Execute the transaction and update the state Consume gas for the transaction

    For Ethereum Transactions, nodes:

    • Execute the transaction and update the state Calculate the gas used and compare it to the gas supplied, then refund a designated portion of the surplus.

    • Send a fraction of the fees used as revenue to contract developers as part of the Revenue Module, if the transaction interacts with a registered smart contract

  5. Nodes run EndBlock for this block and store the block’s GasWanted.

code snippet
code snippet
distributes