Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
2 votes
1 answer
782 views

gas fee on OpenSea

First, I'm brand new to the Ethereum platform, so I do apologise if any of the following is considered stupid questions. Now, I will ask my question anyway I am setting up the first sale of one of my ...
1 vote
0 answers
23 views

How to get transaction fees and minus it from balance

I created an auction exchange smart contract using solidity programming language and I am using ganache for testing this is a test file written in JavaScript. seller is the creator of auction and ...
1 vote
1 answer
22 views

Why don't ETH transfers cost more when the recipient's balance is zero?

The SSTORE opcode has differential pricing depending on what the original, current, and new storage values are (see EIP-2200 for the full details). In short, the idea is that setting a zero value to a ...
2 votes
1 answer
29 views

What do original, current, and new value mean in the context of pricing storage updates?

I've heard these terms thrown around in discussions surrounding storage pricing in the EVM. But what do they mean, more precisely?
0 votes
2 answers
357 views

Why gas fee on Uniswap is far far higher than normal gas fee

The transaction fee for swapping tokens on Uniswap is significantly higher than the normal Ethereum transaction fee. I wonder why? Note: You can obtain real-time gas fees from https://etherscan.io/...
1 vote
2 answers
1k views

Transaction Underpriced at gas price less than 10Gwei on Binance Testnet

I am working on BEP20 token which I eventually want to deploy on the Mainnet. I have currently deployed the token on the Testnet. I am using metamask as my wallet. When I interact with the contract ...
0 votes
0 answers
17 views

Eth::Client::ContractExecutionError - transaction underpriced

I am using the eth gem ruby library https://q9f.github.io/eth.rb/ to execute a function called from the ABI but it keeps getting the error transaction underpriced. I assume that it has something to do ...
4 votes
1 answer
508 views

Understanding gas tokens and create2

I am going through a sample gas token code on Ethereum. The token mints some dummy smart contracts using CREATE2 and then calculates the address. Later on it destroys them to get the gas refund. ...
1 vote
0 answers
14 views

"ProviderError: transaction would cause overdraft" with gasPrice of 1 wei

I have a hardhat deployment script that has been working for months. But a few hours ago, it stopped working, and I keep getting gasPrice related errors. I tried: gasPrice: "auto" gasPrice: ...
1 vote
1 answer
35 views

Optimizing Gas Costs in Solidity Smart Contracts: Best Practices?

I'm working on a Solidity smart contract and I'm concerned about the gas costs associated with its execution. I want to optimize my contract for gas efficiency to save on transaction fees and improve ...
0 votes
1 answer
617 views

Error with wrong calculation of gas price and value after lots of iterations

I am trying to code something that empties an address and sends that amount to my main-wallet. In order to get familiar with sending raw transactions and manually setting the eth-amount, I've tried ...
1 vote
2 answers
2k views

Recommended Gas Limit for Single Transaction

Current mainnet gas limit per block is 8M (7.99), that of Ropsten is 9M (which is actually rather surprising as it was 4.7M two months ago and I did complain about it...). Given the above, what's the ...
1 vote
2 answers
598 views

I need to know gas price C# Nethereum

How can I get current gas price? I want to calculate the gas fee per transaction. I need to multiply Gas Price by _estimatedGas. I looked at the Gas price on https://bscscan.com/ it's 5 Gwei. Can I ...
0 votes
1 answer
5k views

Ethers js estimate gas offline?

Looking here in the docs it mentions I need to have the provider attached to estimate gas. But for formatting a transaction offline, I dont have access to the provider. Is there a way to estimate the ...
5 votes
1 answer
555 views

Does anything change on getGasPrice( ) in Web3js after EIP-1559?

Using getGasPrice in web3js returns the last few blocks median gas price. After EIP-1559, the fees system is divided into Base + Tip. My question is, what is returned using getGasPrice after EIP1559? ...
1 vote
2 answers
52 views

Transaction fails due to: Insufficient funds for gas * price + value

I am trying to make transactions on Polygon Mainnet, but unfortunately when I automatically try to calculate the transaction fees, the transaction gets reverted because I assume that the fees are to ...
0 votes
2 answers
3k views

Transaction shows up on etherscan and metamask said it was sent, but my token balance is still the same

I made USDC transaction and metamask said it was sent and etherscan also say there was a transaction made as seen below. But my USDC balance is still the same as if it never left my account. And ...
1 vote
1 answer
464 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
1 answer
389 views

ERC-20 Token Gas Fees

I have been researching gas fees, but there is one thing I have not figured out; and that is "Are the gas fees the same regardless of the amount of ERC-20 token I am trying to move around?" ...
0 votes
1 answer
292 views

What are the parameters for the ideal gas limit?

I am new to writing smart contracts, in recent times I am having trouble in deploying the smart contracts couple of times so I need a solution for that. I am using the truffle most of the time so ...
1 vote
2 answers
311 views

Function not marked as View and Pure but read only

I have a function: function test(uint value) { if (balances[msg.sender] < value) return; balances[msg.sender] -= value; } *note: the above is for illustrative purposes only. ...
9 votes
2 answers
11k views

How do I set a gasPrice with ethers deploy script?

I'd like to set a gasPrice in my deploy script, so I could deploy and let miners pick up my transaction when gas is low. Like deploy my contract over night while I'm sleeping to save money. How can I ...
0 votes
0 answers
8 views

How can l compare tx fee for main network and testnet

I have a contract on testnet and how can l learn how much tx fee will be on main network with same contract. Is there any way to get this information.
1 vote
1 answer
594 views

Ethereum tx pending - gas price

I made an ethereum tx with 21 gwei gas price. It is now pending since more then one hour. Theoretically when adoption increases and therefore more txs happen and everybody must set enough gas to be ...
0 votes
1 answer
661 views

Changing Gas Price value in Metamask input field with JS

Hello I have a problem when I need to accelerate transaction in Metamask, I want to increase the gas fee price but it`s not working... As u can see in image I run script to change value but metamask ...
0 votes
2 answers
1k views

Difference between lazy minting in OpenSea and Rarible

Rarible allows us to publish gas-free NFTs through lazy minting while OpenSea requires an initial gas fee (for Ethereum), after which all subsequent NFTs are published for free. After paying the ...
0 votes
1 answer
277 views

How accurately does sepolia gas/transaction price correlate with ETH

I'm currently using Sepolia testnet while learning how to mint nft's through javascript, and wondering how accurate the gas price/transaction fee's are for when I switch to using real ETH. I'm making ...
1 vote
0 answers
19 views

Reduce gas price?

I'm working on a sniping bot on uniswap, and i have a little problem : the first ones to buy are those who pay the most. Pretty logical, but I don't really want to pay 300$ in priority gas to be the ...
1 vote
1 answer
278 views

What's the best way to get gas price in next block

our wallet project is requried some update about gas price 1 not set gasprice by user 2 auto choose the best gas price Current, I am using rpc method eth_gasPrice in my wallet's code to get gas ...
0 votes
0 answers
12 views

Web3.py: 'intrinsic gas too low', how to select gasPrice and gas?

In previous question on the forum this issue was already discussed, but it does not address another one: how to select gas and gasPrice so that you wouldn't bet all wallet's money and transaction ...
3 votes
5 answers
3k views

Goerli more expensive than Ethereum Mainnet

Currently, a transaction on Goerli is more expensive than the Ethereum mainnet. Why is that the case? Here is the contract: contract Test { uint x; function test() external { x += 1; } } ...
0 votes
1 answer
75 views

How to fix "Transaction was not mined within 50 blocks, please make sure you transaction was properly sent." error?

I'm here for your help. When I call the signTransaction function defined in web3.js, Transaction was not mined within 50 blocks, please make sure your transaction was properly sent error occurs. I ...
0 votes
1 answer
697 views

Decode hexadecimals gas and gas price values "0xd9c5"

Hello i have following kvp: { gas: "0xd9c5" } But the ABI do not have gas func and the interface is not able to decode it, any idea how to decode the gas to extract the value when is ...
0 votes
1 answer
44 views

Cannot set gas price price to zero in Hardhat tests

I am trying to test a contract using Hardhat and want to set the gas price to zero. This will make it easier to see if my functions are working correctly, in that I can easily calculate the correct ...
0 votes
1 answer
301 views

Question about Gas and Gas Price

In my transaction: gasPrice: 210000 blockHash: "0x69bd71736f2a5d2c83919a0de81a7de0b6b690bb6bdda3acff254d5c68f634bc", blockNumber: 3178, from: "0xc8caa71c16299b40b8579742a27ee53162886040", gas: ...
0 votes
0 answers
213 views

Getting "err: max fee per gas less than block base fee" when estimating gas cost of a transaction

For the last few days, I have some trouble using the eth_estimateGas function from the Quick Node provider. Indeed, after fetching a transaction from the mempool, I want to estimate the gas cost of ...
0 votes
2 answers
24 views

Gas price error when minting a created token

I created the following token https://bscscan.com/address/0xb3497b2a0368e9b96ace9b6ad3033f440457d1b9. In addition to the written code, the imported calls were ERC20 such as import "@openzeppelin/...
1 vote
1 answer
3k views

Getting "ValueError: intrinsic gas too low" when trying to make a basic swap on Quickswap (polygon/matic)

I'm using Brownie to try and make a basic swap on Quickswap: from brownie import accounts, config, network, interface def main(): """ Runs the make_swap function on the Uniswap ...
0 votes
1 answer
93 views

How to correctly specify maxPriorityFeePerGas?

I am trying to send a transaction quickly by adding a priority fee that is half the base fee with the following logic: const { baseFeePerGas } = await client.getBlock(); const priorityFee = ...
2 votes
0 answers
133 views

Gas costs for contract deployment

Whenever I deploy a contract on Sepolia, there is an additional gas cost I haven't quite figured out. The flow as I understand is: 21,000 gas (base) 32,000 gas (contract creation) 4*(zero-value bytes ...
0 votes
1 answer
73 views

How much does it cost to clog the Ethereum Network exactly?

Currently the largest gas guzzler to clog the Ethereum network is the Mint contract below. Supposedly there are users purposely causing high gas prices using this function. Why would anyone do this ...
0 votes
1 answer
900 views

Gas usage by the OpenSea ERC-721 example code

I am currently trying to mint some ERC-721 non-fungible tokens to the OpenSea website. I am following this tutorial and have got everything working on the testnet. My collection has been minted on ...
0 votes
1 answer
297 views

Can't send ether to crowdsale contract (fail) + infinite gas bug on Remix

I'm a newbie trying to make a crowdsale contract in Ropsten (deployed a token contract very well before) but i meet some problems : I can't send ether to crowdsale contract, returning a fail status ...
1 vote
1 answer
1k views

Transaction dropped. How to increase gas fee?

I sent some ether using Ledger Live, but the gas fee was too low. I would like to increase the gas fee. I was told I can do this via Ledger Ethereum Wallet for Chrome. However, when I open Ledger ...
0 votes
0 answers
15 views

How to calculate a tx's effectiveGasPrice within a block?

Let's say I query all transactions within a block. Assuming all transactions are already settled, how can I know what will be their effectiveGasPrice ? I'm confused that transactions specify a ...
0 votes
3 answers
2k views

how to upgrade or cancel a pending low gas transaction

I sent a transfer of an ERC20 token from my wallet to an exchange wallet with the lowest gas (5 Gwei). It's now been 1 day 6hrs and still shows as pending. Is there a way I can upgrade or cancel this ...
0 votes
1 answer
33 views

Why is MyCrypto is disabling the Sign Transaction button?

I'm using MyCrypto to execute a function of a smart contract but the sign Transaction button is disabled. I'm using the setting to auto calculate the Gas Limit and its suggesting a limit of 68908 with ...
1 vote
0 answers
26 views

Post Merge transaction selection time

I was wondering if anyone has some historical data on how long the delay is from broadcasting a transaction to the Ethereum network before it is being picked up by a miner after The Merge? Preferably ...
1 vote
1 answer
122 views

EtherJS calculates gas fee too low

newbie here so please bear with me. I am using EthersJS latest v5 in order to interact with our contracts, which works great so far. However, I spotted that for a certain period of time (around 1st ...
1 vote
1 answer
116 views

Prioritize Ethereum Transaction

What would be a good strategy to prioritize a transaction given the EIP-1559 definitions: Base Fee: minimum fee a transaction must pay to be a valid transaction. The Base Fee changes per block, ...

1
2 3 4 5
10