Matmo
  • Ⓜ️Matmo
  • πŸš€Mainnet
  • πŸͺ™Token
  • πŸ›‘οΈAudit
  • 🎁Presale
    • πŸ’°Wallet and Buy
    • πŸ“ˆToken price
    • πŸ’ΈBonuses and Discounts
    • πŸ‘«Referral program
    • πŸ€VCS & Angel Investors
  • 🎦Marketing
  • πŸ”’Economics
  • πŸ“»RoadMap
  • πŸ“šDOCS
    • πŸ•ΈοΈWeb3
    • πŸ“’Concepts
    • ↗️Account
    • βš’οΈBlocks
    • πŸ”€Transactions
    • ♨️Gas and Transaction Fees
    • βš–οΈStaking
    • πŸ‘ΊNFT
    • 🏦Swap
    • πŸ•Governance
    • πŸŒ‰Bridging assets
    • πŸ•ŽRun a Validator
      • πŸ“³Run a Fullnode
    • ⛓️API
    • πŸ“€SDK
    • πŸ‘ΎValidator
  • πŸ«‚Team
  • πŸ‘«Community
    • Twitter
    • Telegram Channel
    • Telegram group I
    • Telegram group II
    • Telegram group III
    • Medium
Powered by GitBook
On this page
  • How to understand the gas fee in matmo?
  • Gas Estimation During Transactions:
  1. DOCS

Gas and Transaction Fees

PreviousTransactionsNextStaking

Last updated 10 months ago

How to understand the gas fee in matmo?

You need to pay a transaction fee to make any with the matmo blockchain on the mainnet. This fee comes from transactions with client applications, contract interactions, token conversions, stakeholders, node operators, or voters.

Gas Prices and Preferred Deals In the matmo network, matmo governance sets the minimum gas unit price. However, the market determines the actual minimum gas unit price.

See , for example, which shows the market price movements of Ethereum gas price.This will help you understand the gas fee changes

Gas Estimation During Transactions:

For Paymaster and Custom Accounts In matmo, there is a constant 210000000 gas that should cover all the inherent costs of processing a transaction: checking signatures and updating nonces for accounts.

If you're careful enough, you'll find that the gas used for a transaction can be estimated by simulating on-chain transactions, as described here, or locally via the matmo CLI's gas analysis feature. The results of a simulated represent the exact amount required in the exact state of the blockchain at the time of the simulation.

These gas units used may change depending on the state of the chain.

Transactions can be simulated using the SimulateTransaction . This API will run the exact transaction you plan to run.

For simulated trading, there are two flags:

Use #code:

//code
"gasPerPubdata": "1212",
"customSignature": "0x...",
"paymasterParams": {
  "paymaster": "0x...",
  "paymasterInput": "0x..."
},
"factoryDeps": ["0x..."]
  • estimate_max_gas_amount: This flag will find the maximum possible gas you can use, and it will simulate the transaction to tell you the actual gas_used

estimate_gas_unit_price: This flag will estimate the gas unit price in the transaction using the same algorithm as the estimate_gas_price .

πŸ“š
♨️
transactions
Ethereum Gas Tracker
transaction
API
API