Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

60 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
132 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
37 views

Blocks can't contain more than 81 transactions

I'm building a private blockchain with Parity clients. For performance testing, I'm submitting many identical transactions. One of the nodes has a GPU miner attached. There are 2 issues I cannot ...
3
votes
0answers
71 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
1answer
625 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 ...
3
votes
0answers
189 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
164 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
476 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
191 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
121 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
50 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
1answer
251 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 ...
2
votes
0answers
180 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
507 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
599 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
0answers
85 views

Gas estimation errored with the following message (see below). The transaction execution will likely fail

When I try to excute the deposit function it shows Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution ...
1
vote
0answers
45 views

Store constants as non-256 bit fields

My contract has a lot of uint256 constant fields that are later used for various calculations. I am close to reaching the maximum allowed contract size and I am looking for optimizations. I see that ...
1
vote
1answer
198 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
0answers
180 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
43 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
37 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
2answers
91 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
558 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
129 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
115 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
1answer
74 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 ...
1
vote
0answers
389 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
428 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
409 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
7 views

Gas Limit not accurate from Genesis

Gas Limit is not matching the genesis blocks determination, the "gasLimit": "0x895440" is getting me this "Error: Returned error: Transaction cost exceeds current gas limit. ...
0
votes
0answers
13 views

Parity Max Gas Limit dropping

When running my chain my gas limit drops drastically from the set limit of the genesis block "gasLimit": "0x3B9AC9FF" due to large gaps both in time and frequency between the ...
0
votes
0answers
14 views

How can I get the gas limit specified for a past transaction from web3?

I'd like to know the difference between gas limit specified and gas actually used by a confirmed transactions from previous blocks. For each transaction on Etherscan, you can see both the actual gas ...
0
votes
1answer
72 views

How to estimate gas limit for “payable” smart contract?

We all know that gas limit for EOA to EOA transfer is 21000. I am got stuck at a point and unable to get dynamic gas limit estimation for "payable" smart contract using Web3. When sending Ether from ...
0
votes
1answer
25 views

How do I add more gas to the ganache-cli

I started the ganache-cli with 'ganache-cli -l 800000000' I deployed my contract with 'truffle --network development' which is defined in the truffle-config.js file as: networks: { // Useful for ...
0
votes
0answers
38 views

How to correctly account for transaction costs when swapping from one ERC-20 token to another using for example the Kyber network?

If I for example have 5 KNC (an ERC-20 token) and would like to swap them for x amount of DAI (another ERC-20), this would on the Kyber network, as far as I understand, be achieved via two conversions:...
0
votes
0answers
29 views

intrinsic gas too low in Ropsten

I am trying the sendSignedTransaction in Ropsten and I assigned the value of gas limit and gas price: gasLimit: web3.utils.toHex(21000), gasPrice: web3.utils.toHex(web3.utils.toWei('10', 'gwei')) ...
0
votes
0answers
22 views

Invalid nonce and gaslimit

When i try to deploy a contract i get the following errors Skipping adding transaction to block because of gas limit: 0x7893d69159325fb60c90772c84b9e3c74a1627440d70e799fce81275066e8743 (limit: ...
0
votes
0answers
48 views

Geth automining includes only 1 transaction per block

I am trying to perform a heavy load and scalability tests on a smart contract. However, the test takes a lot of time because only 1 transaction is added per block. I read that this might be due to ...
0
votes
1answer
31 views

Send transaction with locked contract -> Error: insufficient funds for gas * price + value

I'm trying to send a transaction for a token with a locked contract. I'm doing this to find out when this contract will be open. So I'm expecting to get some kind of error like "ERC-20 Token Transfer ...
0
votes
0answers
22 views

Gas limit per block - Increasing or Decreasing the value of Gas limit in Go-Ethereum Source Code

My question is that is it possible to modify the value of Gas limit per block in go-ethereum source code. If yes, which part of GasLimit value could be affected on the Gaslimit per block in source ...
0
votes
0answers
47 views

Insufficients funds to Deploy Contract on Test Network

Here are my files on github, https://github.com/ArtieLadie/gas_limit https://github.com/ArtieLadie/gas_limit/blob/master/deploy.js sets gas limit here, async function deployContract(web3, contract, ...
0
votes
1answer
309 views

ethers.js - estimating gas limit

Using the ethers.js library, how can I determine the gas limit when sending a transaction to a contract or deploying a new contract?
0
votes
0answers
430 views

Returned error: gas required exceeds allowance (91135865401031) or always failing transaction

I am trying to deploy smart contract on private network and do transactions via nodejs script. This is my genesis block: { "config": { "chainId": 16, "homesteadBlock": 0, "...
0
votes
0answers
75 views

“Out of Gas” while transferring ethereum from account to contract

I am using ganache to create 10 ethereum accounts. I want to transfer ethereum from one account to a smart contract. I am doing this by writing two following smart contracts in solidity; pragma ...
0
votes
1answer
53 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
316 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
580 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
75 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
1answer
109 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
84 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 ...