Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
129 views

Genesis.json permanence and updating the blockchain

I understand that the initial genesis.json attributes are a permanent thing, and it cannot be changed retroactively. But what I want to know is which parameters are changeable afterwards and how? ...
3
votes
0answers
31 views

Does 'estimateGas' behave the same on Ganache and on mainnet?

I noticed that estimateGas behavior in Ganache has changed: In version 6.4.1, it throws an exception if exceeding the gas-limit. In version 6.5.1, it returns the estimation even if exceeding the gas-...
3
votes
0answers
129 views

Difference between execution costs on remix an Ganache?

I created a contract on remix and then deployed it. when I call any function there is an execution cost in gas. I also deployed the same contract on Ganache for testing. I find the execution cost in ...
3
votes
1answer
146 views

Can someone verify this answer: gasLimit vs. minGasLimit

I would have thought that these are the upper and lower bounds of how much gas can be used in any one transaction. But the mainnet file has the same value for each of these. Can someone explain what ...
3
votes
0answers
446 views

What is the max value of gaslimit in genesis.json?

What is the max number of gaslimit you can set in genesis.json? I'd like to put lots of data in one block, so I need to set max gaslimit in genesis.json.
3
votes
0answers
186 views

“Removed tx from pool: low tx nonce or out of funds” on deploy empty contract

First, I know that there is a similar question, but maybe we're talking about different problems. I'm running geth-1.4.3-stable. My account balance is: 1808.90008114 ether I want to deploy a ...
2
votes
0answers
86 views

Maximum amount of TX per block

Yesterday we did a test. We launched around 1500 transactions simultaneously to our test private blockchain. They all went through perfectly, all at almost the same time (with correct and consecutive ...
2
votes
0answers
26 views

What Web3JS method do I call to know what value to use for the gas price with sendSignedTransaction?

I am using Web3JS 1.0+ to send transactions to my smart contract. I've been using the following constant for the gas price in my code that I got a long time ago from a tutorial. What is the "...
2
votes
0answers
172 views

Can the behaviour of the Ropsten Test net be compared to that of the main net?

can be assumed, that a contract behaves in the same way on the Ropsten Test test as well as on the main net, in terms of gas consumption for example? (I think, that the gas price might be different?) ...
2
votes
0answers
497 views

Remix Testrpc “base fee exceeds gas limit”

I am following this great tutorial from Ed Zynda. I started testrpc and tried to deploy the FuncToken.sol to a Web3 Provider. I managed to connect to the local RPC (have to change protocol from https ...
2
votes
0answers
560 views

Parity error -32010 Transaction cost exceeds current gas limit. Limit: 4703218, got: 4712388. Try decreasing supplied gas

I am playing with a private blockchain. I get this error when I try to deploy a contract: [-32010] Transaction cost exceeds current gas limit. Limit: 4703218, got: 4712388. Try decreasing ...
1
vote
1answer
93 views

Can't call function from contract using web3.js due to gas issue

I'm building a smart contract and dapp using ganache and web3.js. In my smart contract I have a function (named "add_pilot") which gets 4 parameters and add them to a mapping. It looks like this: ...
1
vote
1answer
332 views

Error Ganache: Run out of gas - Works in Remix/Not from dApp

I am working on an application that stores and retrieves personal data on/from the ethereum blockchain. Just working on this to improve my Solidity and SC expertise and get comfortable with the ...
1
vote
0answers
134 views

Error in mist : exceed block gas limit

I am trying to deploy a smart contract in private network using mist, but when I deploy my contract and provide transaction fee as 0.04 ether it throws error as exceeding block gas limit. Here is the ...
1
vote
0answers
34 views

How can i deploy contract with > 4.7 Mgas required on Ropsten?

I was able to deploy contract that requires more gas than default Ropsten block gas limit: https://ropsten.etherscan.io/tx/0x7c40cd2c539c03d110da8988641518ff6ff907a284f5074ed3d8517eb80b51f9 (5594037 > ...
1
vote
1answer
24 views

Loop with upper bound of iterations / loop variant

Is it possible somehow to create a loop that solidity will recognize as having an upper bound of iterations for gas estimations? Something like a loop variant in Eiffel (https://www.eiffel.org/doc/...
1
vote
1answer
208 views

Exceeds block gas limit error to call view functions

With solidity view function, you can specific the amount of gas to use. My understand is since it is not a state changing transaction, all the gas cost is not charged for, and the client should be ...
1
vote
2answers
53 views

Analize gas usage and contract design

Suppose that I've the following contract code: pragma solidity ^0.4.23; contract pensCollection{ struct Pen{ uint productCode; address ownerAddress; } address public ...
1
vote
0answers
530 views

Error: gas required exceeds allowance or always failing transaction

I am calling contract's method from javascript. It throws error as: <pre>Error: gas required exceeds allowance or always failing transaction <br> &nbsp; &nbsp;at Object....
1
vote
0answers
115 views

Remix: Contract exceeds gaslimit even tho blocks have a high enough gas limit

I am trying to deploy my smart contract to a blockchain that was setup for me. The genesisblock specifies the gaslimit (something around 4mil), however that was not enough for me. Instead of deleting ...
1
vote
0answers
114 views

What will happen to the gas block limit after Casper?

Is there any reason to believe it'll go up or down significantly?
1
vote
0answers
330 views

my_contract,estimateGas() crashes and “eth_estimateGas” returns incorrect value

I'm trying to estimate Gas for a contract method (both using parity and geth - tried web3py and web3js). Contract is deployed and proven to be working. When I use: estimateGas and geth (providing: ...
1
vote
0answers
156 views

High consumption of gas puzzle

Normal transfer works normally with this erc20 token: https://etherscan.io/address/0xe9e74bae31892b6b1c000e009c93438dbd14d723#code When withdrawing from the Etherdelta contract: https://etherscan.io/...
1
vote
0answers
383 views

transaction gas limit in Parity genesis file

Essentially the question is how to set/change the "minimal cost of the transaction" a.k.a. "Gtransaction" value using Parity? On a private blockchain with a custom chain spec file I have a ...
1
vote
0answers
396 views

Avoiding out of gas errors when making Oraclize queries that have callbacks which trigger more queries

I have a contract that I want to automatically check the price of ethereum everyday. right now I have a method called startContract which calls a function setConversion which makes a query set for 1 ...
0
votes
0answers
11 views

Can web3js accurately estimate a transaction that includes an external call?

Can web3js accurately estimate a transaction that includes an external call? For example, will it be accurate in estimating: (bool _success, bytes memory _response) = _to.call.value(_value)(_data); ...
0
votes
1answer
17 views

What are the parameters for the ideal gas limit?

I am new to writing smart contracts, in recent times I am having trouble in deploying the smart contracts couple of times so I need a solution for that. I am using the truffle most of the time so ...
0
votes
1answer
40 views

What should gas prices be for sending out tokens?

I constantly get failed transactions when sending out tokens like USDT using metamask. I have my gwei set at 10 and the gas limit at 21000. I even tried gas limit set to 51000 and it still fails. ...
0
votes
0answers
10 views

Is there works to get rid of the GAS fee system for Ethereum 2.0?

Making transactions and constantly getting it failed due to gas limit settings is a hindrance to ETH adoption especially for newbies coming to the platform. Has there been any dev talks about getting ...
0
votes
0answers
51 views

Why is my metamask transaction failing even if I set a high gas limit?

Below is a failed transaction. i set the gas limit to double of what it normally is, but it still failed. How can one figure out the correct gas limit, if the auto settings don't even work. Why does ...
0
votes
0answers
74 views

Test requires block gas limit much higher than deployment cost

Im testing a really big smart contract using Truffle and Ganache-cli for my test blockchain. The Ganache-cli configuration im using is this: ganache-cli --allowUnlimitedContractSize -l 471238800 -d ...
0
votes
0answers
32 views

JSON RPC get this error “Request have return error: gas required exceeds allowance or always failing transaction”

i'm trying to do a simple transaction for a token but i keep getting following error for estimate gas limit : "Request have return error: gas required exceeds allowance or always failing transaction" ...
0
votes
0answers
94 views

About gas limit and gas

I'm developing Dapp, In that app one function consuming a gas but I am providing sufficient ether at the time of initiating transaction by web3 for the Dapp Users,Then also it is showing out of gas ...
0
votes
1answer
40 views

remix - gas limit exceeded, but contract is running on blockchain

i studying remix and ethereum, and create my local blockchain. and create contract with remix.the contract just print simple word. pragma solidity ^0.4.8; contract HelloWorld{ string public ...
0
votes
1answer
37 views

Sending funds to a possible smart-contract

When sending funds to an Ethereum address, Should my wallet check in the blockchain whether the address is associated with a smart contract? In order to choose the gas limit automatically. If someone ...
0
votes
2answers
47 views

Infinite gas on assigning struct

I have this code and it gives me infinite gas. please help me improve it. pragma solidity ^0.4.23; // v6 contract owned { constructor() public { owner = msg.sender; } address owner; ...
0
votes
2answers
80 views

Minimum Gas limit and how can it be reduced?

Why does this minimum exist and what can we do to to reduce it further. This line of thought was spurred by this tweet from Vitalik: "And there are layer 2's without data availability tradeoffs or ...
0
votes
1answer
152 views

Deploy Smart Contract to Mainnet using Truffle

I was able to deploy the contract successfully to Kovan with gas limit 350000. When i set the gas in truffle.js to 500000 for deployment to Mainnet, i get the below error: Error: Transaction cost ...
0
votes
1answer
107 views

What is the unit of measurement used in GasPrice and GasLimit?

I did a check, in ethgasstation the current safeLow = 15GWei, which is equal = 15,000,000,000 wei However, when I issue eth.getBlock("latest") what I get was: > eth.getBlock("latest") { ...
0
votes
2answers
628 views

Recommended Gas Limit for Single Transaction

Current mainnet gas limit per block is 8M (7.99), that of Ropsten is 9M (which is actually rather surprising as it was 4.7M two months ago and I did complain about it...). Given the above, what's the ...
0
votes
1answer
174 views

Increase gas limit to allow larget contracts to be deployed

I'm working on a private blockchain and I found out that I cannot deploy a contract larger than 34Kb which is pretty limiting for me. For comparision, cryptokitties are 40-47Kb so I cannot even deploy ...
0
votes
2answers
169 views

Finding gas to be used by a transaction

Is there a way to find the total gas that will be used by the transaction before a tx actually takes place? Does the gas used depend on the amount of tx size in kb?
0
votes
0answers
101 views

Can't send ether to the contract

I'm using My ether wallet on Ropsten, Brave(Metamask Ropsten) and Remix Ropsten Injected Web3. The first transaction was successful (0.5 ether received),https://ropsten.etherscan.io/address/...
0
votes
1answer
205 views

Can't invoke SC function: Error: gas required exceeds allowance or always failing transaction

I've deployed my smart contract to Rinkeby test net. The "addProject" function works fine. But when I try the "addProjectFile" function I got error. "Error: gas required exceeds allowance or ...
0
votes
1answer
132 views

Deploying Crowdsale in Ropsten Network givin Gas Limit issue

Below is the Code of My CrowdSale , which is giving The contract code couldn't be stored, please check your gas amount. pragma solidity ^0.4.18; import "./TorCoin.sol"; import "zeppelin-solidity/...
0
votes
1answer
269 views

infinite gas required of simple external function call

I have minimized the following solidity code generated in remix to demonstrate the issue. This code warns the test001.regester function requires infinite gas which obviously by the code cannot be. ...
0
votes
1answer
146 views

Infinite gas estimate for almost all the functions. Is it normal?

When I deploy contract test net, it shows an error that gas limit exceeds: 3000000 What's the solution? Github Link to the smart contract. And is it normal to have the infinite gas estimate of ...
0
votes
1answer
330 views

Why do my FAILED transactions get charged the max gas price?

I tried buying TEL on EtherDelta and had two failed transactions in a row, both charged at the max gas price, one after like 15 mins and the other instantly. How come I get charged for a failed ...
0
votes
1answer
65 views

Locked ERC20 paid out as tx-fees to DAO holders

I'm creating a contract where people transact by using locked ERC20 tokens. For example - you'd have 500 of token A locked in the DAO contract. You decide to send 100 of token A to some other ...
0
votes
1answer
167 views

change gasLimit parameter into the genesis.json file on azure priavte blockchain

I am trying to deploy a smart contract to an azure blockchain. The contract is deployed without errors but i can't submit transaction to the blockchain through this contract. I guess this is an issue ...