Skip to main content

Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
0 votes
1 answer
330 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
2k 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
1 answer
3k views

What's the difference between "Transaction fee" and "Gas used by Txn"?

On this etherscan doc page (https://info.etherscan.com/what-is-a-transaction-hash-txhash/), it says: Transaction Fee The actual cost of the transaction (Gas Used by Txn multiplied by Gas Price). ...
2 votes
1 answer
789 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 ...
3 votes
1 answer
376 views

block.basefee, tx.gasprice and gasleft() in Optimism/Arbitrum

Does block.basefee, tx.gasprice and gasleft() work the same in Optimism and Arbitrum as they do on L1? If not, how do they differ? Do these L2s even have a base fee like L1 does? I'm trying to make a ...
0 votes
1 answer
14 views

Why is each block getting under utilized in ethereum?

The current block gas limit in ethereum is 30 million units but far from getting completely filled they are way underutilized. Is it because the gas price sent by transaction not attractive enough for ...
1 vote
2 answers
983 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 ...
1 vote
2 answers
2k 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 ...
1 vote
1 answer
322 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
1 answer
684 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
1 answer
181 views

Is there a way to make the user pay "aggressive" gas fees automatically instead of them choosing that in MetaMask?

I am having issues with MetaMask in my DApp because users are using wrong or invalid RPCs. Is there a way of making users add a network automatically to MetaMask with the right RPC and override the ...
1 vote
2 answers
3k 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 ...
0 votes
2 answers
22 views

How can I efficiently handle gas costs when deploying Ethereum smart contracts?"

I'm relatively new to Ethereum development and I'm currently working on deploying smart contracts to the Ethereum mainnet. One concern I have is managing gas costs effectively to ensure that my ...
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 ...
0 votes
1 answer
455 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?" ...
1 vote
1 answer
611 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 ...
5 votes
1 answer
717 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
1 answer
527 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
2 answers
4k 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 ...
0 votes
1 answer
27 views

Very High gas fee in my staking contract

I am trying to implement my staking contract, for some reason calling stake() or claimRewards() costs 2MATIC ~ 4MATIC. I know my code is kind of complex since I loop and use data structures but still ...
0 votes
1 answer
314 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
1 answer
390 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, ...
0 votes
0 answers
60 views

Zero gas fee for transactions

I saw some people on ethereum and bsc chain that execute transactions paying 0 gwei per gas. How is it possible and how to do the same thing?
-1 votes
1 answer
56 views

What is the state of the art of transaction costs in a pure gambling smart contract?

AFAIK, the vast majority of crypto gambling uses crypto only as a payment rail, and then implements the gambling step in a traditional (though usually provably fair) way. Using a smart contract to ...
1 vote
2 answers
358 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. ...
0 votes
0 answers
27 views

Why does transaction value have impact on transaction fee in Ethereum?

I am sending a transaction to Sepolia test network from browsers. The code I have is something like: provider.request({ method: 'eth_sendTransaction', params: [ { ...
0 votes
1 answer
799 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
0 answers
19 views

How to send entire account balance to another address on Base

The below code is what I used to transfer entire account balance to other address on the ERC20 network and it works fine on it, but not on Base. Maybe it's because Base has different transaction fee ...
0 votes
0 answers
45 views

Replacement fee too low, Base Sepolia

This is the code I have for sending a transaction on Base Sepolia. I am using this to split the balance in my account into two halves and sending each half to an address one by one. export async ...
0 votes
1 answer
894 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 ...
1 vote
0 answers
14 views

Feasibility of Manipulating (Increasing) Ethereum's Basefee (Gas Price)

Has anyone explored how feasible it is to manipulate the block.basefee (i.e., the gas price) on Ethereum? After running some numbers, it seems more achievable than initially thought. Consider this: ...
1 vote
1 answer
20 views

Influencing/Setting tx.gasprice

I am currently trying to solve a security challenge. Thereby, as the last step in order to solve it, I have to make sure that the following require is true: modifier filter() { require(tx.gasprice ...
0 votes
4 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 ...
1 vote
5 answers
8k 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/...
0 votes
1 answer
318 views

Question about Gas and Gas Price

In my transaction: gasPrice: 210000 blockHash: "0x69bd71736f2a5d2c83919a0de81a7de0b6b690bb6bdda3acff254d5c68f634bc", blockNumber: 3178, from: "0xc8caa71c16299b40b8579742a27ee53162886040", gas: ...
1 vote
0 answers
1k views

Fail with error 'Min return not reached' [closed]

I am trying to make trades on 1inch and frequently get an error that reads Fail with error 'Min return not reached'. My gas prices are set very high because I need these trades to be as fast as ...
0 votes
1 answer
27 views

maxFeePerGas, is this per gas unit? or per the gas the tx needs?

Let's say I have a tx that requires 10,000 gas units. Let's say I want to pay upto 50gwei per gas unit. When I send maxFeePerGas, do I set it to: 50 * 10^-9 ? // i.e. 50gwei, as in "this is the ...
0 votes
0 answers
34 views

Contract deployment costs

I have a contract that when deployed to Sepolia costs ~550K gas to deploy: current gas rate on the mainnet is <50 gwei: yet, when I try to deploy to the mainnet, I am declined on not having ...
1 vote
2 answers
795 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 ...
4 votes
0 answers
62 views

k-th auction confusion from Vitalik's article

I was reading an article from Vitalik where he mentions the weaknesses for k-th auction. If the gasPrices of users are as follows: "0.02, 0.03, 0.05, 0.08, 0.13, 0.19, 1.00" and miner has ...
0 votes
1 answer
40 views

How to transfer entire address balance to another address

After going through the questions here and here I came up with the code below to transfer the entire balance from one address to another using web3.js. export async function sendTransaction( ...
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
2 answers
1k views

How to convert gas price in GWEI to USD or ETH?

I'm using Etherscan Gas Fee API to get current gas fees in GWEI. It can only return gas fee in GWEI and I tried to find online but can't find an answer on how to convert the Fee from GWEI to ETH or to ...
0 votes
1 answer
613 views

SEPOLIA / ETHEREUM BEHAVIOR Problem with Gas

For a customer I've created a smart contract that run very well on SEPOLIA(without any problems). The contract has been deployed then on the Ethereum mainnet. Both compiled with solidity 0.8.18 But ...
0 votes
1 answer
909 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
24 views

Transaction fees too high for swapExactETHForTokens

I've written a script to buy tokens in javascript. The issue is I keep getting an error showing abnormally high transaction fees. This is my script const buyFunction = this.pancakeContract.methods....
0 votes
1 answer
78 views

Error when attempting to send SepoliaETH between two accounts in remix via smart contract with specific conditions: Cause of error -->undefined gas

I would like to use my smart contract to map a payment transaction from SepoliaETH from one Metamask account to another Metamask account. The conditions of a transaction limit and a recall function of ...
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 ...
1 vote
1 answer
212 views

What are the specifics of the base fee formula?

Looking at the ethereum.org page on Gas I see that post-London upgrade base fees are calculated according to the size of the previous block relative the target gas limit of 15 million. Then I read: ...

1
2 3 4 5
10