Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

What is the gas limit for a view function call *not made from a contract*?

So this question seems trivial but I can't find any comprehensive answer, though reading through: Is there a gas limit for view requests? Why view/pure functions need gas? Exceeds block gas limit ...
0
votes
0answers
8 views

gas vs gasLimit in web3.js [duplicate]

I've seen a bunch of stackoverflow posts on this and want to make sure I've got it right. I'm running into an issue where on test networks I can do this: contract.methods.mint(1).send({ from: ...
0
votes
0answers
18 views

Transaction interacting with contract used gas higher than estimated

I have a transaction interacting with a contract, I have used eth_estimateGas to calculate the gas limit because I do not have much ETH. Here are the eth_estimateGas params: { "jsonrpc": ...
0
votes
1answer
12 views

Do any one had a template API to display/show estimated gas price for a transaction?

Description of the issue: I do not have sufficient funds in my wallet to transfer a token from my wallet to an external wallet. So the transaction will fail and shows us an error message. Instead of ...
0
votes
1answer
14 views

Why does one transaction fail with "Out of gas" while another tx succeed with the same gas limit?

During a recent NFT mint (contract), approximately 50 out of 920 transactions failed with an "Out of gas" error. We discovered users with failed transactions used the same settings as others ...
0
votes
1answer
31 views

Why is gas used depended of the given gas limit?

I have an interesting phenomena EDIT: on the Fantom network, sorry if this is the wrong place to ask which I do not understand, so maybe someone is able to explain this: When I send a transaction with ...
0
votes
1answer
13 views

how to tackle block gas limit to send large data file as transaction on ethereum

I want to send ethereum blockchain a file approx 39KB. The file is like array generated by python code. I dont want to use IPFS and oracle. Is this file exceed block gas limit? if yes, then can i ...
0
votes
1answer
38 views

estimate gas usage for a contract

I'm trying to estimate the gas usage for a smart contract for an NFT token - is it possible to do before the actual sale? contract is already published and all functions as well. so I want to know how ...
1
vote
1answer
47 views

My ERC-721 minting gas fee is almost $10000. Too high. How fix it?

I just deployed NFT Dapp on mainnet. Estimated gas fee is too High. It's almost $10000 How can i fix it? I never knew on local canache or rinkeby testnet There was fine gas fee.. is it depend on ...
0
votes
1answer
44 views

Gas estimation failed on run in rinkeby network

ValueError: Gas estimation failed: 'invalid opcode: opcode 0xfe not defined'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually. Could someone please ...
0
votes
0answers
92 views

Transaction failing due to can't estimate Gas Cost on Polygon

I have a function function tokenValue( address _token, uint _amount ) public view returns ( uint ) { return _amount.mul( 10 ** IERC20( MY_TOKEN ).decimals() ).div( 10 ** IERC20( _token )....
0
votes
0answers
19 views

Out of gas exception though only 99% was consumed

We know one of our transactions consumes always 62_599 of gas, once we have decided to set the gas limit to 63_000 the tx has failed with out of gas exception. Right after we have increased the gas ...
1
vote
1answer
239 views

Brownie / Rinkeby ValueError: Gas estimation failed: "you must set the gas limit manually"

from brownie import AdvancedCollectible, accounts, config, network from scripts.helpful_scripts import get_breed import time static_seed = 123 def main(): dev = accounts.add(config["wallets&...
0
votes
0answers
15 views

How to provide enough Gas while calling a function from another function

Here are my two functions. One of them loops over the other. However, when I execute the scheduleMultipleTransactions(), it seems it runs out of gas for calling scheduleTrasnactions() several times. ...
0
votes
0answers
22 views

Payable function that calls another contract out of gas

I have a smart contract that implements a payable interface for a mint function. The contract is pretty simple: pragma solidity ^0.4.5; contract PayableMinter { address dc; function ...
0
votes
0answers
12 views

gasFee for transaction HASH?

I have simple web page (HTML,JS). I need to calculate gas fee for each transaction. Currently I'm using the etherscan api to get fee. I'm trying to analyze wallet which has 48 000 NFT token's and ...
0
votes
1answer
76 views

Increase block gas limit hardhat

I'm just running some tests with massive functions, and I keep running into InvalidInputError: Transaction gas limit is 30429720 and exceeds block gas limit of 30000000 How do I increase the block ...
0
votes
0answers
41 views

Binance Smart Chain - address.transfer runs out of gas - locked forever?

I'm having quite a troubling situation on the Binance Smartchain Mainnet. I have a contract that I created and it owns some BNB. I wrote a onlyOwner function to transfer the BNB over to another ...
1
vote
1answer
982 views

If Ethereum 2.0 won't reduce gas fees on mainnet, what will? [closed]

For much of 2021, people who buy and sell ERC-721s believed that Ethereum 2.0 would reduce gas costs, while knowing that the London Hard Fork that was released in summer would only help reduce gas ...
0
votes
0answers
42 views

wrong maxPriorityFee

My contract function is Setting the maxPriorityFee the same amount of the gasPrice and I don't understand why. Here how I Calculate my gas and my gasPrice: Gas for this transaction: await contract....
5
votes
2answers
3k views

Why is an 'UNPREDICTABLE_GAS_LIMIT' error thrown when calling a view function created from a public variable?

I am using the Hardhat console to test my smart contract, which worked flawlessly until I removed the getter functions I wrote for my public state variables in favor of the automatically generated ...
0
votes
0answers
70 views

Out of gas & Exceeds block gas limit, but contract size <24KB

I've 2 contracts I'm trying to deploy on mainnet-fork, but I keep getting this error: VirtualMachineError: out of gas When I try to increase the gas limit, I get this: ValueError: Exceeds block gas ...
0
votes
1answer
53 views

Is it safe to deploy a 8,000,000 gas contract?

8,000,000 gas seems to be the maximum gas allowed when deploying a contract on mainnet. My question is, is it even safe to do so or do I have a bigger risk that my deployment tx fails ? If so I would ...
2
votes
0answers
41 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 ...
2
votes
1answer
660 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
17 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
210 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
63 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
18 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
30 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
217 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
235 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
21 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
62 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
80 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
11 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
18 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
409 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
101 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
18 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
245 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
46 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
136 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
24 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
192 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
28 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
22 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
176 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
1k 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
94 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 ...

1
2 3 4 5
7