Questions tagged [gas-estimate]
The gas-estimate tag has no summary.
353 questions
0 votes
0 answers
10 views
Burst Minting Network Congestion
I’m building a high-throughput minting system for NFTs on Polygon using a NestJS In normal mode, minting is sequential and stable. In burst mode, I need to mint ~10,000 NFTs at once (each mint is a ...
1 vote
0 answers
35 views
Can someone tell me how the base fee of AVAX chain is predicted?
I read the documentation and it mainly uses the eth_basefee API to obtain it, but this method has delays and the prediction is not accurate. Does anyone know how to calculate the base fee using a ...
0 votes
1 answer
69 views
How do we determine the gas cost for precompiles?
For example ecrecover has a constant gas of 3000 units, and a precompile for secp256r1 signature verification takes up a constant gas fee of 3450 gas units. The RIP7212 states : The gas cost is ...
0 votes
2 answers
86 views
I am going to estimate ethereum gas before executing transaction
I am going to estimate gas in uniswap v2. Before executing transaction , I need to decide how much ETH cost in this transaction. Please help me.
1 vote
0 answers
26 views
How can I add accesslist EIP2930 to forge test
I want add access list EIP-2930 to my tests in foundry forge. How can I do it? Is it possible?
1 vote
0 answers
31 views
how can I calculate gasunits to token1 from Uniswap V3?
I'm using Uniswap V3 to quoteSingleInput of how many token1 I get for token1. WETH/ARB in this case, both having 18 decimals. I've asked ChatGPT how I do it, and it keeps trying to get me to get the ...
1 vote
1 answer
86 views
How to get an gas estimate of cast call
I have started a local blockchain using anvil and deployed the following simple contract to it using forge create: // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; contract Wrong { uint256 ...
0 votes
2 answers
74 views
Gas Fees ridiculously high in production
I wrote the following index fund contract and deployed it on Arbitrum. When trying to call the mint function, I have insanely high gas fees ($100,000 for a call). I know that my function is a bit ...
0 votes
2 answers
66 views
Why is there an overestimation in the PimlicoFeeEstimator in the relay-kit and Entry Point 0.7
Why is there a buffer added into callGasLimit, verificationGasLimit and preVerificationGas in the PimlicoFeeEstimator in the relay-kit ? What's the reasoning? https://github.com/safe-global/safe-core-...
0 votes
0 answers
59 views
Unable to understand how I'm supposed to gas optimize this cuz it keeps saying the gas fees is too high and likely to fail. How do I fix this?
pragma solidity ^0.8.20; import "./Errors.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@chainlink/contracts/src/v0.8/vrf/dev/VRFConsumerBaseV2Plus....
0 votes
1 answer
141 views
How to dynamically get the user operation gas values?
I'm developing smart wallet based application using ERC-4337 v0.6 . I'm trying to dynamically get the gas values of a user operation. Currently I'm using Stackup's bundler for sending user operations ....
0 votes
0 answers
89 views
Returned error: gas required exceeds allowance (448144)
Here is my code, would you please verify what causes the problem for deployment on Remix (only on the eth mainnet)? Returned error: gas required exceeds allowance (448144) // SPDX-License-Identifier: ...
0 votes
1 answer
68 views
Trying to deposit ETH to my contract with Chainlink Functions. Getting gas estimation errors
We were not able to estimate gas. There might be an error in the contract and this transaction may fail Keep getting this error when I am trying to deposit to my contract that is using Chainlink ...
0 votes
2 answers
674 views
how to verify the minimum gas fee for deploying a contract on the mainnet?
how to verify the minimum gas fee for deploying a contract on the mainnet? my contract creation failed in Remix IDE, I choosed estimated gas fee and the process were not successfully finished, is it ...
0 votes
1 answer
303 views
Best Practices for Gas Optimization in Ethereum Smart Contracts
Ethereum community! I'm currently working on developing a smart contract for a decentralized application (dApp) on the Ethereum blockchain. I'm concerned about optimizing gas usage to enhance ...