0

If I run some operations in testnet and record what fees were incurred, would this be representative of the fees that would occur on mainnet?

Related to this, are fees affected by congestion on the network?

1 Answer 1

0

Given 2 identical accounts, making identical trades, the gas consumed and the storage consumed would be the same across mainnet and testnet. However there are many reasons why similar transactions will cost more or less depending on the circumstances or state of the network/account, instead of testnet versus mainnet.

e.g.

  • Sending funds to an unrevealed wallet incurs an "allocation fee", meaning its possible for sending XTZ to sometimes cost more.
  • Certain operations with smart contracts will require "burn fee", that will differ depending on a number of factors.

So it would never be possible to say "the fee paid for a transaction of type X, will always cost Y". As it depends on the state of all the accounts and contracts involved.

Fees can be affected by congestion. All bakers will prioritise operations with a higher fee-to-gas ratio, to get the biggest reward for their effort.

And while there is no set fee for gas in the Tezos eco-system, all bakers come with a default configuration that lists a minimum fee for gas, which in practical terms, means there is a minimum fee.

I wrote a tech doc to explain how to automate fee estimation, with hardcoded constants. Constants can and should be fetched from the network, but I never got to update the doc: https://gitlab.com/camlcase-dev/tezos-rpc-postman/-/blob/master/tutorial-estimate-operation.md

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.