Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

Filter by
Sorted by
Tagged with
0
votes
2answers
45 views

How transaction with gas used ok 28k succeed for payable?

I'm trying to understand what I can do in fallback payable (I have read the docs and I know what I can't do for sure). Here is my contract: pragma solidity ^0.4.22; contract SmartMsgData { // ...
1
vote
1answer
2k views

Getting 'base fee exceeds gas limit' on a transaction which requires a small amount of gas

I have the following contract: pragma solidity ^0.4.24; contract MyContract { address public owner; bool public unlocked; constructor() public { owner = msg.sender; ...
1
vote
0answers
80 views

What's the point in the 'gas' parameter passed to function 'signTransaction'? [duplicate]

I am using web3.js v1 in order to sign and send transactions: async function signAndSend(transaction) { let options = { to : transaction._parent._address, data: transaction....
2
votes
1answer
108 views

question about gas limit when using oraclize

I'm using oraclize to fetch some data from the outside world. Oraclize calls the __callback method of my smart contract. For this call oraclize have to pay gas and there is a function to set the gas ...
0
votes
1answer
46 views

Sharding: Shards with different properties?

I am currently trying to get more into sharding but there's one question I haven't found any answer to yet. Could sharding introduce shards with different properties? For example could Shard A have ...
0
votes
1answer
155 views

The contract code couldn't be stored when deploying to rinkeby

I was finally able to get some ether funded and geth/mist working and now i am getting the following error when attempting to deploy my contracts to the rinkeby test network. My project is based on ...
1
vote
1answer
100 views

The contract code couldn't be stored, please check your gas amount. Truffle, privatenet

I'm developing a smart contract over private blockchain using Truffle framework. Developed smart contract was running well, today we have been introduced one pure method as per requirement. Afterwords,...
1
vote
1answer
127 views

Why is the gas limit dropping in my private network once my local node connects?

I have a private network consisting of a "Ethereum proof-of-work consortium" on Azure and my development pc. In azure there are 2 mining nodes and one transaction node. All on Ubuntu virtual machines ...
0
votes
1answer
288 views

Am I setting my gas price and gas limit correctly?

web3.TransactionManager.DefaultGas = 210000; // Gas limit? web3.TransactionManager.DefaultGasPrice = 10 * 1000000000; // Gas Price? I have intended to set the gas price at 10Gwei.
0
votes
1answer
269 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") { ...
2
votes
1answer
331 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 ...
0
votes
1answer
123 views

Do contract messages consume gas

In all sources it's stated that transactions cost gas. Since the distinction between a transaction and a message (some name it an internal transaction) is not so clear it couldn't be sure if messages ...
0
votes
2answers
671 views

How to deploy Ethereum smart contract that requires more than 4.7M of gas on Ropsten network?

My smart contract is really huge - it requires 5.6M of gas on deploy. I was able to deploy it once but smth has changed and i can't do it anymore. I've tried to run miner with higher block gas limit ...
1
vote
2answers
129 views

extended crowdsale smart contract not deploying to testnet

I'm trying to deploy the following crowdsale contract(extended from openzeppelin) to the ropsten test network using the remix IDE. The contracts compile but throws errors(Gas limit exceeded) when i ...
0
votes
2answers
2k views

"The transaction execution will likely fail. Do you want to force sending? VM Exception while processing transaction: out of gas"

When I want to deploy a contract using testRPC and remix, I receive the following error message: Gas estimation errored with the following message (see below). The transaction execution will ...
0
votes
2answers
2k 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 ...
1
vote
2answers
110 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 ...
0
votes
1answer
1k views

Error: Transaction:exited with an error (status 0) after consuming all gas

New to Ethereum and learning unit testing with Truffle. Here in smart contract function; function createAgreement( bytes32 _id, address _owner, string _fileHash, ...
1
vote
1answer
540 views

Web3 "Transaction ran out of gas" on method that creates a contract

I have the following Solidity code: pragma solidity ^0.4.17; contract Parent { function createChild() public { new Child(); } } contract Child { } Which I'm calling with web3 like ...
0
votes
1answer
1k views

Change a pending transaction's "Gas Limit" & "GWEI"

a noob question here! I'm using Metamask, I've sent a transaction to another wallet. I would like to increase the Gas Limit and reduce the gas price. Is this possible? If so, how? Thanks!
4
votes
2answers
718 views

Why do miners not always "vote" to increase the block gas limit?

Miners can increase/decrease the block gas limit. I read that they can increase/decrease for about 0.01% per block. Why do miners not always want to increase the block limit? This would lead in more ...
0
votes
1answer
735 views

Clarification on Ethereum gas limit

I know this one has been asked many times before and I think I get it, but I just need a little more clarification. At the moment, https://ethgasstation.info shows the following gas prices Safe Low ...
0
votes
1answer
80 views

Reverted tx on Ropsten but gas limit not reached

This is a timed crowed sale contract https://ropsten.etherscan.io/tx/0xaa3fa69a32060ad578cb9bc2a94fcc4cf7109f4e743f54c527c18f764f634ebb Error encountered, bailing. Network state unknown. Review ...
0
votes
1answer
190 views

Non deterministic gas usage of the same function

Environment Truffle v4.1.8 node 10.0.0 pragma solidity ^0.4.21; Issue I'm calling the claimRefund function on my smart contract using metamask. When calling the function with 37081 gas limit at 20 ...
2
votes
1answer
62 views

How does ether transfer processed [duplicate]

I want to understand deeply how ether transfer processed and how 21000 of gas determined. Is this a simple constant fee of the transfer transaction or ether transfer transaction is the some predefined ...
5
votes
1answer
3k views

Why is there block gas limit?

Why is there block gas limit? Should it just be the sum of gas limit used by each transactions inside the block? Why do we need an extra field for it instead of calculate it?
0
votes
1answer
289 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 ...
2
votes
2answers
612 views

Price of gas from https://ethgasstation.info/

The website https://ethgasstation.info/ contains a lot of information regarding the price of gas and this is confusing. My question is: what piece of information from the website should I use to ...
1
vote
1answer
35 views

Do Units of Gas Exist that are not Integers?

What are the units of gas? Is it measured in integers or can be any real number?
0
votes
1answer
49 views

Can anyone tell me how I can improve gas requirement?

Below is my smart contract. Remix gives warnings on each of the following functions: Gas requirement of function MedicalRecord.addNote(bytes32,bytes32) high: infinite. Gas requirement of function ...
0
votes
3answers
2k views

Truffle - test - how to get more than 10 accounts?

I want to test gas limits of the block. Currently in my tests: console.log(accounts); console.log(accounts.length); I have 10 accounts, what to do if I want more? Related: https://github.com/...
5
votes
1answer
570 views

Transaction out of gas but gas used less than gas limit

I have this method on a contract that I'm testing on rinkeby function addMatch(string _name, uint _fixtureId, uint8 _home, uint8 away, uint _start) public onlyOwner returns (uint8) { require(...
3
votes
1answer
2k views

Error: "The contract code couldn't be stored, please check your gas limit" [duplicate]

It's seem that is a very common topic but I couldn't find the solution in other questions, sorry for asking it again. I'm following a beginner example, trying to deploy a contract in Rinkeby Network ...
0
votes
1answer
2k views

Gas estimation errored with the following message... Error: gas required exceeds allowance or always failing transaction

I made a smart contract, but i got an error while deploying it , after i specified the Gas limit of 3000000 and a random value (wei) , and clicking on Create , i got the following error : ( i am ...
7
votes
1answer
2k views

Gas consumption of a view public function

In my contract I have a view public function that returns an array of bytes32 elements. In remix it produces a warning saying it might run out of block gas limit if I use this function. As I had read ...
7
votes
2answers
5k views

Solidity Exceeds block gas limit during Mocha Tests with Ganache-cli

How can I increase the gas limit in this case? The error message is "n: Exceeds block gas limit" or "base fee exceeds gas limit". I think there is some kind of api I need to set the block gas limit ...
1
vote
1answer
995 views

How to properly estimate gas costs of function calls with go-ethereum and golang?

I'm attempting to build out a program in golang to model ethereum gas costs of function calls for the smart contracts I write. I've successfully been able to estimate them using ethclient.EstimateGas ...
0
votes
1answer
415 views

Solidity Ganache/Mocha test error: base fee exceeds gas limit

I got this when I was running the Mocha test with Ganache package to test the Solidity smart contracts. Then I got base fee exceeds gas limit error. Is that because my contracts are too large? Should ...
7
votes
1answer
4k views

Gas limit of a contract method call

When we call a contract method, what will be the gas limit? Is there any other gas limit besides the block gas limit? If there are any others, can we manually set the gas limit when we call a method?...
0
votes
1answer
201 views

Offline signed contract throws 'exceeds block gas limit'. Why can't I deploy?

I'm trying to deploy a smart contract onto the Ethereum blockchain by signing the transaction on an offline computer and then transferring the byte code to an online system for deployment. Because of ...
0
votes
2answers
302 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
282 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/...
1
vote
0answers
561 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
1answer
552 views

Remix IDE - transact to ___ errored: VM Exception while processing transaction: out of gas

pragma solidity ^0.4.18; contract Testing { address public owner; function Testing() public { owner = msg.sender; } function() public payable { } function withdrawAll() public { ...
6
votes
2answers
2k views

Is there a reason Ropsten doesn't have the same block gas limit as mainnet?

It appears as though Ropsten still has a limit of 4.7m gas while mainnet is almost 8m. This makes testing for real-world dapps difficult. Why is it that ropsten and mainnet are not in alignment with ...
1
vote
1answer
171 views

Is it possible to send a standard transaction with a gas limit < 21,000?

I've noticed that Parity and Geth will return the following error when sending a standard transaction with less than 21,000 gas: "Transaction gas is too low. There is not enough gas to cover minimal ...
2
votes
1answer
22 views

Do verifiers apply a gas limit to the blocks they receive?

I know that there is a gas limit for each transaction, set by the sender. Also there is a gas limit for each block set by the miner. So I want to know does an additional gas limit applied to the mined ...
0
votes
1answer
195 views

Block reward from transaction regarding block's gas limit

maybe it's a silly question or remark, but given that the current block gas limit is about 8,000,000 and the average gasPrice is about '15Gwei' ( I roughly looked at the chart "Transaction Count by ...
0
votes
1answer
241 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
54 views

Why does adding more external functions adds more cost to a smart contract?

Please let me know to delete the question if it's already been asked. I was told (by a colleague of mine) that adding more external function to a smart contract increases its gas. I tested (on remix ...

1 2 3
4
5
7