Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

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

Gas estimation failed - remix (HELP ME PLEASE)

I'm having this error, and I can't solve it, could someone help me? Gas estimation failed Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do ...
2
votes
1answer
26 views

Understanding Gas Fees for NFTs

I am going to mint a collection of 10,000 NFTs. However, I've become very concerned over the gas costs associated with such an endeavor. I was wondering if someone could help me understand the ...
0
votes
0answers
32 views

BEP20 Contract need help ASAP please

Getting errors about gas limits on a already successfully deployed contract and now transactions on Pancake swap aren’t going through with error “Pancake: K” or this message “we are trying to fix a ...
0
votes
0answers
19 views

calculate gas cost for transaction

this is the method that I call: function depositAll() public { address(0xf5eA38B6b9644224dA1aECbC1219e8543c0689b2).call(abi.encodeWithSignature("depositAll()")); } and this is ...
0
votes
1answer
71 views

What chain is better about gas costs? Ethereum or Binance Smart Chain?

I am developing an smart contract and i want to know what chain is better about gas costs. Ethereum or Binance Smart Chain? Thank you
1
vote
0answers
21 views

Why is there gas infinity here?

I'm starting with Solidity and Smart Contracts, and the static analysis in Remix is complaining about gas infinity for the function bet: contract Forecast { struct Bet { address ...
0
votes
1answer
59 views

Explain the relation between geth --miner.gaslimit and etherscan Gas Limit

Geth command-line options I am looking at geth command-line options for miners, specifically: --miner.gastarget value --miner.gaslimit value The default value for both is 8000000 on Ethereum ...
2
votes
1answer
21 views

Can I Specify gas fees in the smart contract?

Deploying my contract on rinkeby cost ~12 USD in gas fees (using truffle cli). Is it possible for me to specify gas fees/set a limit in the smart contract so it costs me 0.5 USD, but takes longer to ...
1
vote
1answer
52 views

How do I identify the right gas to set in web3 send?

This is my send code: window.videoContract.methods .mint(account, 'https://ipfs.io/ipfs/QmRQC1...') .send({ from: account, gas: 20100000 }); If I set it too high, I get ...
0
votes
0answers
9 views

Verify result of gas expensive view calculation in transaction

I'm have an expensive view function which calculates rewards over time and investment. When it comes to withdrawing rewards I would need to run this, which could overrun gas for the block. Is there a ...
1
vote
1answer
21 views

How to interpret the “Gas Limit” column on etherscan's internal txns view?

Here's a Kovan transaction I'm trying to optimize: https://kovan.etherscan.io/tx/0xdbe1d6369f80d0672c90eabefccc6ca972e13f921ac83c8cc28cb310f2837a0a#internal I've noticed that the "Internal Txns&...
1
vote
1answer
33 views

Changing contract property to public increases gas costs

I am following kind of an outdated tutorial and trying to adapt it to the more recent changes in Solidity and other packages. Following one of my changes, I am running into a problem that I can't find ...
0
votes
1answer
36 views

Different Transaction Costs For Different ERC20 Tokens?

I just went to send some OXT from my wallet to an exchange and noticed that the cost was much higher than if I were to send ETH or UNI while using the same gas price. My wallet shows a different ...
0
votes
1answer
32 views

Tx stuck even after using gasestimation for gas limit

I am trying to sign a manual transaction using ethereumjs-tx to interact with a smart contract. This is how I am getting my gaslimit, nounce and data for the params var GAS = await cont.methods....
1
vote
0answers
355 views

Does the gas limit for AAVE transactions need to be so high?

There are two parts to the fee you pay for an Ethereum transaction - gwei and gas limit. Gwei is determined by how competitive (ie, congested) the Ethereum network is. As most people are aware, the ...
1
vote
0answers
23 views

Cancelling a pending transaction on ETH blockchain [duplicate]

I want to cancel a transaction on ETH chain but my hardware wallet does not have an advanced option to set a nonce for tx. Is there any alternative to cancel a tx ?
1
vote
1answer
254 views

Gas limit issue when transfer USDT

i have been asking by my client to save ETH when transfer out his USDT, he hope there is no or very little ETH left in his new USDT address. Please assume that USDT address has no initial ETH and next ...
0
votes
0answers
80 views

If you accidently set a very HIGH gas limit to purchase a smart contract for ETH can it be changed?

Ex. Gas limit was accidentally set to 5,000,000 & now when Trying to customize it keeps auto-populating to that causing me an INSANE gas fee of over $400. I don't want to cancel because I don't ...
0
votes
1answer
27 views

Deciding Gas Pricing

Anyone know how curve fi and metamask fetch the average gas price for the transaction and how they provide the slow and fast option? I just want to know which third party they use to get these info.
0
votes
0answers
19 views

Too many request to node to get gas limit

When I need get gaslimit I call to node by web3j(java) by function ethEstimateGas to get gas amount used and I have cronjob to get ```gasPrice```` from etherscan. Follow by number of request can ...
1
vote
2answers
176 views

Unable to Deploy/Migrate to Mainnet via Truffle/Infura

On 12/26/2020 I successfully compiled, migrated and tested on Ropsten via Truffle the following contract https://github.com/estudios-amazonia/FilmVault/blob/main/contracts/FVP_Token.sol. See Ropsten ...
1
vote
1answer
188 views

Out of gas problem on contract call

Here ether scan links to failed transactions : last failed attempt : etherscan link others : etherscan link traced view of contract calls etherscan link (you may just change the tx hash on the URL to ...
0
votes
1answer
26 views

Can gasLimit be infinite?

Assuming I have enough Ether, can smart contracts be executed no matter how complex they are as long as I specify a large enough gasLimit? Hope you can give me some hope, thanks!
0
votes
1answer
39 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
12 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
86 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
65 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
77 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
20 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
18 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
524 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
307 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
67 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
514 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
31 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
44 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
46 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
35 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 ...
5
votes
1answer
17k 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
28 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
72 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
244 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
66 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
18 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
29 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
22 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
38 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
1k 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
203 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 ...

1
2 3 4 5
7