Gas and Transaction Fees
Last updated
Last updated
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
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:
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
.