Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

How much is cost to deposit some ETH from 10 EOA address to a smart contract and withdraw the funds to one EOA address? [closed]

How much is cost to deposit some ETH from 10 EOA address to a smart contract and withdraw the funds to one EOA address? I want to know how much gas-limit is need to execute it? deposit part ...
0
votes
1answer
18 views

Gas requirement of function problem

I am trying to run below code, but I receive this error "Gas requirement of function Team3_SE427_Call.increaseCount is infinite: If the gas requirement of a function is higher than the block gas ...
0
votes
0answers
4 views

Transaction Gas limit vs gas used vs start gas

I was inspecting one of my transactions on ropsten and I noticed something was off. The gas limit and gas spent as shown on etherscan and in metamask are 45666 and 29034 respectively so far so good. ...
1
vote
1answer
27 views

Best Practices for Recommendation regarding Gas Price & Limit in a Dapp

I am developing a Dapp. I was wondering what are the best practices for user recommendation regarding gas price and limit in such a Dapp? Should I be using the following methods in my contract, or ...
2
votes
1answer
32 views

What is the gas limit for a fallback function called when the method does not exist?

According to the docs a non matching function identifier will trigger the fallback function. So what happens if someone calls my contract with "thisMethodDoesntExist()", would the fallback ...
0
votes
0answers
17 views

is it possible to change block' gas limit?

I'm trying to execute some heavy transactions. Before execute it, Remix advises me about the gas limit: Ok, then I change my gas limit on Metamask to 9,000,000 (I'm on Ropsten network): And finally, ...
1
vote
1answer
13 views

Do gas refunds apply in a fallback function? What is the limit for non matching function identifiers?

I know that a fallback function called with a .transfer only has gas limit of 2300. What happens if the fallback function deletes some storage variables in the fallback function? Would the fallback ...
1
vote
0answers
15 views

Reading gas limit inside solidity smart contract? [duplicate]

As we can read the gas left and the gas price inside solidity smart contract, is there any way that I can read the gas limit set for the transaction inside the solidity ?
1
vote
1answer
79 views

Ropsten “exceeds block gas limit”

I am on GETH, 1.9.23 and I have had a smart contract running for more than 3 months now. Suddenly, all transaction failed with "exceeds block gas limit". I checked the Ropsten Testnet and ...
0
votes
1answer
55 views

Gas price and limit with Truffle deployment in Ethereum

I am developing a smart contract in truffle. I'm having some trouble understanding how GAS works in Ethereum. I used the following parameters in my Rinkeby test net: gas limit: 4600000 gas price: ...
0
votes
0answers
18 views

Test execution error: 'The contract code couldn't be stored, please check your gas limit.'

When I was coding the unitary tests for my smart contract on Remix, I encountered a problem of gas limit: contract deployment failed after trying twice: The contract code couldn't be stored, please ...
0
votes
1answer
41 views

Default gas limit set by web3 is unreasonably high?

I am trying to learn and understand solidity/defi by creating some copies of current popular protocols; I've created a small copy of the Curve Dai strategy from harvest finance, but I'm getting really ...
2
votes
0answers
16 views

Send raw transaction from geth when not synced (exceeds block gas limit)

I have a geth node which is not synced and I want to send eth. > TX={ from: FROM, to: TO, value: VALUE, nonce: NONCE, gas: GAS, gasPrice: GP } > personal.unlockAccount(...) > SIGNED_TX=eth....
2
votes
0answers
29 views

ETH same transaction different amount of gas used

The two transactions: a) https://etherscan.io/tx/0x9227f7b00bf2c98a7e16eb5ab90c04df5b49698297ee7f52c765d5218af395ad b) https://etherscan.io/tx/...
1
vote
1answer
22 views

How do Miners get the GAS Used so close the GAS Limit?

Are the Miners calculating the actual GAS USED for each Transaction (specifically for contract execution) before they stuff it into the Candidate Block to get so close to the Block GAS Limit? The ...
0
votes
1answer
19 views

Could someone explain Ethgasstation.info headers?

in TXN pool vision of https://ethgasstation.info/txPoolReport.php I am getting confused with the meaning of headers. What does the following headers mean? % of Last 200 Blocks Accepting % of total ...
0
votes
1answer
255 views

Fees are too Damn High to send $20 worth of USDC. How can one minimize these fees?

It's 2020 September 3. Fees to send 20 USDC to someone is about $10-15 worth of gas fees. How can I minimize the gas fees when using metamask? And is it true that if I set the gas fee too low, I would ...
0
votes
0answers
17 views

“exceeds block gas limit” on partially synced geth

I am trying to send eth when my geth node is not fully synced (it's very, very slow) { currentBlock: 10683052, highestBlock: 10780597, knownStates: 57935524, pulledStates: 57929853, ...
1
vote
1answer
28 views

A way to capture actual gas used per transaction

Two questions, related: Is the getGasUsed() on the TransactionReceipt truly the actual gas used, not the gasLimit or the gas estimate? Looks like it but... Is the actual gas used obtainable ("...
0
votes
0answers
76 views

Gas requirement is infinite for the function

pragma solidity ^0.5.9; contract kyc2{ bool public isallowed; // Structure of customer struct customer{ string custname; ...
0
votes
0answers
34 views

(closed) I deployed the contract with remix but truffle didn't deploy, why?

i want to deploy my contract to Rinkeby or Ropsten testnet with truffle. But I give an error like this: ran out of gas (using a value you set in your network config or deployment parameters.) * ...
0
votes
0answers
12 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
22 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
18 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
29 views

Why array.pop() doesn't work on my private network?

I have deployed a PoA network using Hyperledger Besu and I'm using Remix in order to code a very simple smart contract. Here is the smart contract code: // SPDX-License-Identifier: MIT pragma solidity ...
0
votes
1answer
258 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
53 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
22 views

Ethereum token transaction taking too much time to confirm [duplicate]

I was transacting an ethereum token CRO crypto coin out of wallet. There was 3 fees options. I chose fees for slow transaction time. And it told the transaction should confirm in 30 minutes. But now ...
0
votes
1answer
26 views

What does “gas limit” of a block limit?

Many people(one example) stated that "gas limit" of a block limited "gas limit" of transactions included in it. To verify, I downloaded a block (block number: 10185031) and added "gas limit" of all ...
0
votes
2answers
74 views

Why are transaction fees defined by both gas price and gas limit, and not just one cost limit?

I understand that the gas limit is there so that we don't lose all our ETH when something goes wrong. The gas price is there to define how much 1 gas costs. But the fee is always gas price * gas limit,...
0
votes
0answers
63 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:...
2
votes
1answer
147 views

How does miners vote to determine the block gas limit?

In many posts people say "miners periodically vote to determine the block gas limit". But how actually do they vote and change the block limit? Do they vote for every block/or do it every day or for ...
0
votes
0answers
48 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')) ...
2
votes
2answers
102 views

Gas cost for Ether transfer to Smart Contract from EOA

It is pretty clear that Ether transfer between accounts is 21,000 gas. Does the same apply for transferring Ether to Smart contract address, or does transfer from EOA to Smartcontract cost more gas? I ...
0
votes
0answers
27 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
1answer
124 views

How to Specify Gas Limit and Value in wei or gwei?

Dear Anyone Who Can Help Me, This is my first time posting and asking for help, I'm in the midst of Deploying and Running the Transactions in Remix IDE (as per the picture). I'm stuck at the Gas ...
4
votes
1answer
96 views

How transactions are selected by the miners?

The deployment of transaction executions is bounded by the block gas limit that changes dynamically. If a block fits only one transaction, then the gas limit per transaction is, in theory, the same as ...
3
votes
0answers
38 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 ...
0
votes
0answers
60 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 ...
1
vote
2answers
45 views

How can I find out the sender's gas limit?

Is there a way to check Sender's Gas Limit? If the sender sets too low, I will just accept whatever gas amount that he had set and return immediately without hitting the limit. I am trying to ...
0
votes
1answer
34 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
25 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 ...
3
votes
1answer
35 views

Can I add an int32 to an int256?

I'm trying to reduce the storage size of my contracts by reducing the bytes required to store my int data types (among other things). Can I get the best practice for adding int256 and other smaller ...
1
vote
0answers
145 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 ...
2
votes
1answer
47 views

Can I estimate the total gas limit of several dependent transactions?

Assume two dependent transactions A and B. Transaction B depends on transaction A and will fail if transaction A has failed. I would like to estimate the gas limit required for the success of both ...
0
votes
0answers
48 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, ...
1
vote
1answer
45 views

My private ethereum block gas limit decrease when mining

I set 'genesis.json' like this. ... "gasLimit":"0x30479e80", ... It's 810,000,000 at decimal. But when I run the blockchain and start mining, the block gas limit decrease. I'm using Geth/v1.9.7-...
0
votes
1answer
186 views

Size limit to number of items in a struct

If I loop over mapping into a struct the gas fee is very low. However, in trying to test its limits, the EVM often causes Remix to crash in creating edge cases, because I'm creating blocks of 50 new ...
0
votes
2answers
86 views

Internal contract-to-contract call

I am confused with the following sentence in the Solidity documentation: During the execution of the fallback function, the contract can only rely on the “gas stipend” it is passed (2300 gas) being ...
1
vote
1answer
23 views

Explanation for small variation in gasUsed while recursively deploying same contract

https://github.com/christianlundkvist/simple-multisig/blob/master/contracts/SimpleMultiSig.sol I'm deploying the above contract recursively and I find that the gasUsed varies by specifically 12 gas. ...

1
2 3 4 5 6