Questions tagged [gas]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
45 views

Can't see 35% gas optimization on protocol 009

I looked around and could not see any example of known smart contract (FA1.2, FA2, etc) that is now using less gas then before Florence protocol.
0
votes
1answer
53 views

Is Tezos blockchain vulnerable to “frontrunning”?

I read an interesting piece about frontrunning in Ethereum. In essense, the problem is this: In general, frontrunning is the act of getting a transaction first in line in the execution queue, right ...
1
vote
1answer
33 views

gas_exhausted.operation when sending max balance

Environment: Delphinet using https://delphinet.smartpy.io. I'm connecting to it through the RPC via the java/kotlin library OkHttp. Steps to reproduce: Trying to send my max XTZ balance to another ...
1
vote
2answers
64 views

Michelson gas cost optimizations: any techniques, patterns and rules of thumb

Gas cost is an important topic in smart contract development. We want to maintain the costs as low as possible to allow for more operations in a block. There is a handy gas consumption reference, but ...
0
votes
1answer
35 views

Translating gas and storage units to XTZ

I'm interested in translating the gas and storage costs I get in response from the node after an operation into XTZ prices. Where could I find this information online?
6
votes
1answer
100 views

Updated fee constants in Delphi?

I am using the following formula and associated constants to calculate fees: https://tezos.gitlab.io/protocols/003_PsddFKi3.html#more-details-on-fees-and-cost-model Also referenced here: https://tezos....
0
votes
2answers
48 views

How can I save the gas cost of operations when running contracts in sandbox pytest?

I am testing smart contracts in sandbox mode using python scripts. I want to be able to store how much an operation cost. So for example when I get the output of a contract origination after baking a ...
0
votes
1answer
18 views

Increase gas_limit for tz1 to tz1 transfers

Can 15400 KT gas limit be used as upper limit also for pkh2pkh txs (instead of 10600) or there's risk to incur in some kind of error? For pkh2pkh I mean a transfer from tz1 to tz1 address. For pkh2kt ...
3
votes
1answer
144 views

Gas costs types in Michelson

Gas cost is an important topic in tezos and I would like to understand better the different types of it that occur in michelson how they are calculated Could someone offer me a pointer ?
2
votes
2answers
603 views

How to calculate price of gas

In Ethereum one can get the gas price using web3.eth.gasPrice. In Tezos, does any RPC provide the gas price, or is there a formula to calculate the gas price?
6
votes
1answer
147 views

Relative gas cost of map vs bigmap

Does there exist a realistic performance benchmark between map/bigmap? I am looking for a tipping point where it would make more sense to use a big map for gas cost optimization
4
votes
0answers
63 views

Error too big to serialize within the provided gas bounds. Increasing the gas bounds does not help

I am developing a fairly large set of contracts that interact with each other. I wanted to reorganize and optimized the code and I've added lots of PUSH string "..."; FAILWITH to help me debug. I am ...
3
votes
0answers
29 views

Contract : opcodes FAILWITH / FAIL - gas usage

If a contract gets to the point where it fails. What is the process in terms of gas usage? Storage gas (new storage until failure) : reverted Gas usage (used until failure) : reverted Gas fee : paid ...
3
votes
1answer
39 views

Michelson contract files - spaces, new lines and comments

I wanted to check that when a Michelson contract file is created. Do file spaces, new lines and comments increase the gas cost when deployed?
5
votes
1answer
247 views

Gas consumption in a chain of internal transfers

I am trying to perform a chain of contract calls with internal transfers. I think my current contracts are very simple, but I run out of gas after only 4 internal transfers: A script or one of its ...
9
votes
1answer
968 views

What is gas on the Tezos network?

This question is related to the fact that I have no understanding for what reason need to increase the gas limit, what will the increase affect and why it is impossible to leave the limit as it is? I ...
8
votes
2answers
393 views

What is the difference between fee and gaslimit?

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?
6
votes
2answers
506 views

Fees in proto 003?

Fees have been updated from proto 002 to proto 003. Is there a reference document available somewhere that is indicating fee information for tezos proto 003 ?
19
votes
2answers
619 views

How to calculate gas and storage for an operation?

In protocol 003_PsddFKi3, how can the gas and storage usage be calculated without doing a dry-run in a node?
8
votes
1answer
111 views

How do baking node choose the transactions from the mempool

Could someone describe how the full node chooses transactions from the mempool that make it into a block. I suppose there must be some logic that makes a compromise between fees and gas cost but it ...