Questions tagged [gas]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Does Tezos largely adopt the gas model from Ethereum?

I'm reading through the Position Paper. Specifically in section 1.3, which covers how Ethereum economically de-incentivizes actors from submitting theoretically unbounded computations to the ...
0
votes
1answer
16 views

Can a FAILWITH error be caused by improper gas_limit or storage_limit?

Sanity check question: Can a FAILWITH error be caused by improper (too low) values of gas_limit or storage_limit? I'm guessing the answer is "no", but I'm debugging and stranger things have ...
1
vote
1answer
47 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
77 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
50 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
67 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
42 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
107 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
55 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
22 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
155 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
836 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
152 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
67 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
31 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
40 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
263 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
1k 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
447 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?
7
votes
2answers
524 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
634 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
119 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 ...