Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

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

What parameters should I use in my EIP1559 transaction for a fast confirmation time

Looking to take part in some minting gas wars and looking to prepare a transaction before hand. What values should I use for my Base Fee Per Gas, Max Fee Per Gas, and Max Priority Fee Per Gas to ...
1
vote
1answer
22 views

How to mint 10000 NFT at single or minimum no of transactions on ethereum?

I have to mint 10000 NFTs. But calling mint function 10000 times is not a good idea I guess. Even I created a batchMint function that is calling mint function in loop and it is able to mint multiple ...
0
votes
1answer
8 views

deploying dydxexchange/solo: '"OperationImpl" ran out of gas'

I'm trying to deploy the 'solo' (https://github.com/dydxprotocol/solo) After cloning git@github.com:dydxprotocol/solo.git and resolving all dependencies Contracts compilation is successful, however ...
1
vote
1answer
47 views

How does metamask come up its suggested gas fees?

How does metamask come up its suggested gas fees? How does it come up with a certain amount? What is it optimised for? Should you just use it or should you set your own?
1
vote
0answers
18 views

Rinkeby/Infura Block Gas Limit Issues

I am trying to deploy a contract with a gasLimit of around 8,000,000 on the Rinkeby testnet using an Infura provider. Basically something like this: await MyContract.deploy({ gasLimit: 8000000 }); ...
0
votes
0answers
12 views

Best practices for functions with highly variable gas cost

I'm developing a Dapp with a function (let's just call functionA) that has potentially significantly different gas cost between invocations. This is due to the need for costly extra computation when ...
1
vote
0answers
21 views

What happens when you pass more gas than what is available?

When making a contract call in Solidity, the gas stipend can be altered with the following special options: {value: WEI_VALUE, gas: GAS_VALUE} What happens when the GAS_VALUE is bigger than what is ...
0
votes
0answers
87 views

gas fee the deployment cost of 10,000 nft tokens in the remix IDE is very high

gas fee the deployment cost of 10,000 nft tokens in the remix IDE is very high, is it possible to bypass this or to use your computer's power ? is this possible or are there other ways to deploy ...
1
vote
1answer
102 views

Gas fee limit issue when deploying smart contract to Optimistic Ethereum

I firstly apologise if I am asking something stupid. I am a newbie to smart contract development (and this is my first time to ask a question). I would like to get more familiar with gas fee ...
1
vote
0answers
12 views

What are the benefits of using hard coded gas values in smart contract?

I was reading the docs of Arbitrum and found this hard coded gas values should be adjusted (or better yet, removed entirely if possible (it's probably possible; really now, why are you hard-coding a ...
0
votes
0answers
18 views

Gas problem on Metamask

I'm trying to perform an ETH transaction from my Metamask, but when adjusting the advanced gas options, the system only accepts a gas limit of 210000 (one zero more than usual), which makes my ...
0
votes
0answers
54 views

Insufficient funds for intrinsic transaction "response" "jsonrpc 2.0 method=sendTransaction

I have a problem, when i try to buy a token with my sniper bot have this error. I have > funds of gas require. this is my script (i use BNB) const ethers = require('ethers'); const prompt = ...
0
votes
0answers
10 views

Fees per MB for Ethereum since 2015

Is there a chart for "Fees per MB" in Ethereum? What is the equivalent of MB in Ethereum gas limit?
0
votes
1answer
15 views

Recording gas usage at a specific point in execution

I apologize if it has already been asked here, but i'm currently building a limit orders contract and i'm trying to do something like that. function fullfillMaxOrders() public { while(gasConsumed <=...
0
votes
1answer
122 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
65 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
15 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
109 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
37 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
97 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
22 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
122 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
24 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
19 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
145 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 ...
4
votes
2answers
794 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
73 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
84 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
189 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
27 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 ...
1
vote
1answer
182 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
38 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
276 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
11 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
42 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
52 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
626 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
88 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
763 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
30 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
711 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
173 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
34 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
24 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
325 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
463 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
51 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
99 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
21 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
2 3 4 5
7