♨️Gas and Transaction Fees

How to understand the gas fee in matmo?

You need to pay a transaction fee to make any transactions 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 Ethereum Gas Tracker, 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 transaction 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 API. 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_gas_unit_price: This flag will estimate the gas unit price in the transaction using the same algorithm as the estimate_gas_price API.

  • 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

Last updated