Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

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

Gas estimation failed (remix)

I have a remix "gas estimation failed" error when calling a function. I have read other questions for the same error without much success. I have compiled the code before trying to deploy. ...
0
votes
1answer
28 views

Ethereum gas fees

I am attempting to deploy a simple erc 20 token on the ethereum mainnet. I have tried twice now to deploy the contract each time paying around $20 in gas fees for contracts that would run out of gas ...
0
votes
0answers
12 views

Solidity function gas requirement is infinite for every function in my contract

i am trying to deploy my first ontract on the Ropsten Testnet. So far so good. As i am desingning my Website i cant figure out how to solve the error of infinite gas for all of my functions. I cant ...
0
votes
0answers
48 views

Calculating Gas of A Uniswap Exchange With Web3js

I am trying to calculate the gas that a contract will use prior to executing it. I realize that it is not possible to get a 100% exact value but I would still like to calculate an estimate. I am new ...
1
vote
1answer
24 views

Why is my transaction with a really high gasPrice pending?

I have created a transaction on the Polygon mainnet with a gasPrice of 496 GWEI (this is 496 times more than the normal gasPrice) and a gasLimit of 2,000,000. The transaction is a simple ERC20 ...
1
vote
0answers
59 views

Gas Estimation Error - Swap Contract

I'm working on developing a contract that automatically performs a swap and have been having an issue with the swap function. I finally got the contract deployed on Kovan, but have been getting the ...
1
vote
1answer
17 views

Does copying mappings variables that are large such as balances cosume a lot of gas?

In erc20 contracts, conventionally balances mapping saves the current balance the users are holding. mapping (address => uint256) private balances; If this contract has a lot of users( which means ...
0
votes
1answer
40 views

Transaction out of gas with Remix and Metamask

I'm trying to deploy a contract with Remix and Metamask but I get this error every time I'm trying to do it. creation of ICODeployer errored: Error: [ethjs-query] while formatting outputs from RPC '{&...
0
votes
0answers
19 views

Traded like 12$ of ethereum for husky at like 6 GWEI how long do those trades usually take?

I tried using "UniSwap" but 40$ prices for a 12$ trade seemed ridiculously high so I just went on a random site which allowed me to change "gwei" and I put it to 6 I think, I also ...
1
vote
0answers
18 views

How to fix gas-related errors in sending a transaction

I tried to make my first transaction but kept failing. I searched here and there but still could not find a solution. And came here to write a question. I am trying to send some from account[0] to ...
0
votes
0answers
115 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
175 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
61 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
49 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
144 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
25 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
99 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
27 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
126 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
27 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
40 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
134 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
46 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
576 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
26 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
463 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
115 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
28 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
21 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
256 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
298 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
34 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
70 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
18 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
129 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
82 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
91 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
22 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
19 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
755 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
473 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
95 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 ...
1
vote
1answer
848 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
34 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
65 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
54 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
39 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
20k 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 ...

1
2 3 4 5
7