9

With Ethereum, max fee is gas multiplied by the gas price. But with Tezos, when i construct an operation, the fee is personally set, why is it not computed by gas_limit?

enter image description here

1

2 Answers 2

8

In Tezos, the fee is independant from the gas : whatever the gas consumed, you always pay the full fee.

However, bakers will probably compute the ratio fee/gas, and prefer transactions with higher fee/gas, i.e. more reward for less computation.

3
  • I don’t believe that bakers have a practical possibility of choosing operations that are easier to compute. I think they can only maximize fees received currently, can’t they ?
    – Ezy
    Feb 12, 2019 at 10:51
  • 1
    Besides your answer is not correct: the fee formula contains a term gas_limit*price_per_gas. Can you please clarify your answer ? Cause your first sentence is ambiguous.
    – Ezy
    Feb 12, 2019 at 10:53
  • 1
    Bakers don't currently choose, it is the current baker that implements a strategy to favor transactions with high fee/gas:gitlab.com/tezos/tezos/blob/mainnet-staging/src/…
    – lefessan
    Feb 12, 2019 at 21:57
5

The full fee is always paid for every transactions - the gas limit is just that, a cap on the amount of gas a given transaction can consume. A baker can be guaranteed that they are paid at least fee/gas_limit per unit of gas consumed, even if they consume less.

Some bakers will also enforce a minimum per gas fee, which is currently set to 0.1 mutez (= 100 nanotez) per unit of gas.

2
  • wouldn't 0.1 mutez be equivalent to 100 nanotez?
    – Darius
    Nov 16, 2020 at 11:08
  • Yes it is 100 nanotez. I submitted a fix. Dec 27, 2021 at 2:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.