Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Paying for gas (when the SC is executed) with money stored in a SC

I am starting to program my first real contract and would like to ask if it is possible to do this (something like an auction): Someone deploys a contract. Participants pay for that auction to run (...
2
votes
1answer
2k views

What is Lazy Minting in Ethereum?

I am trying to create NFTs in various digital/crypto marketplaces like OpenSea, Rarible, etc for the past few weeks. In most of the sites, we need to pay some gas fees for adding an asset and creating ...
0
votes
1answer
179 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
2
votes
1answer
231 views

What does all those transactions with 0 mining fee corresponds to?

There have been many transactions with apparently 0 mining fees (gas price set to 0) lately. Including from F2Pool BabelPool and SparkPool. While miners had always been free to include any ...
1
vote
1answer
244 views

Accidentally set gas price too low?

I’m fairly new to Crypto and have just made a recent transaction but I accidentally set my gas price and transaction fee too low therefore the amount needed to be mined is incredibly high, here is the ...
2
votes
1answer
34 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 ...
0
votes
0answers
77 views

Gas estimation failed AmazinBEP20 contract

Im trying to deploy the contract AmazingBEP20, i use: http://remix.ethereum.org/#optimize=true&runs=200&evmVersion=null&version=soljson-v0.8.3+commit.8d00100c.js Contract i want to deploy ...
1
vote
1answer
202 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 ...
1
vote
0answers
432 views

How to optimize (lower gas) random ERC721 NFT mint?

I am creating an NFT that on-chain generates random body parts which off-chain is being combined and made into images and such. I am doing it on-chain to keep it true to the purpose of NFTs, but also ...
0
votes
1answer
219 views

Why are PoS (e.g. BSC) transactions costly?

How much may cost PoS transactions in such networks as future Ethereum mainnet or already existing BSC? Why do BSC transfers cost $0.05? Why doesn't gas cost about the cost of electricity used for the ...
0
votes
0answers
83 views

What time of day is ETH gas the lowest?

What time of the day is eth gas fees the lowest to do a smart contract transaction that doesn't cost an arm and a leg? Is there a chart to see this gas fee time zone?
0
votes
1answer
52 views

Is Ownable.sol transferOwnership() an expensive function to run, or am I running it wrong?

I have a simple ERC20 token, and I would like to transfer the ownership of this contract onto a new address using the Ownable.sol transferOwnership() function When I run this contract, it seems that ...
1
vote
2answers
3k views

Why are gas fees taken for failed smart contract interactions?

When claiming an NFT (smart contract interaction), the gas fees would have been $50-$80, so I went to Advanced options in MetaMask, and turned down my willingness to pay for gas to around 25,000 units ...
1
vote
1answer
5k views

Why is it so expensive to trade with Uniswap?

Please please please, I really would like to know by someone knowledgeable. I looked at the other responses but I still do not truly understand. It just doesn't make sense why anyone would want ETH to ...
4
votes
3answers
151 views

What are the available options (March 2021) for bridging tokens across the chains?

Actual problem in mind I would like to release a token for the Island DAO. I'm worried that ETH gas prices are prohibitively expensive - if I use ETH, the smaller guys will not come. But ETH is the ...
0
votes
0answers
34 views

Why do wallets consistently underestimate gas for our smart contract?

We made a smart contract where you send it ETH, it checks the current price of ETH/USD using a chainlink oracle and then sends back our token at 12 cents a token until March 1, then 15 cents etc. All ...
0
votes
1answer
69 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....
2
votes
1answer
8k views

How can I calculate the gas fee of a swap on Uniswap?

According to gas tracker on Etherscan the average gas price is 212 gwei and the average Uniswap swap estimate is $70.26 which implies that the gas fee is around 201101. To my knowledge swap gas fee is ...
0
votes
1answer
155 views

What decides about the position in the block? [duplicate]

All these transactions happened within the single block: Source: https://etherscan.io/defi?q=0x8a40c222996f9f3431f63bf80244c36822060f12#dextracker Right now it is still possible to get to the initial ...
1
vote
1answer
61 views

How to calculate the gas cost of Solidity's 'transfer'?

I have read that the gas cost of transfer function is 2300Ether. I have got the following contract having a function, testFunc(…), only containing transfer method as shown below, because I want to ...
0
votes
0answers
208 views

I lost 2 ETH! I successfully cancelled my transaction, but the 2 ETH was never returned

public address: 0x6ac5EF890224e2699a89810F0bd2DED90d74Ab37 first Hash tx: 0xfeb6c486a8f17a8b4216bbd2069429a285a1c5da8d15e98d3d66e6bf5488a866 I tried to swap for a coin on uniswap, but it took 7 hours ...
1
vote
1answer
1k views

Why is it so much cheaper to buy/sell/convert on CoinBase than Coinbase Wallet or Uniswap?

I just recently started using Coinbase Wallet (which I will from now on refer to as just Wallet) and connected it to Uniswap to be able to buy some Celsius. I have some various coins on Coinbase (not ...
0
votes
1answer
106 views

Is there a way to cancel a transaction without having to pay a gas fee?

Is there a way a cancel a stuck transaction without having a pay a gay fee? Or does any successful transaction, except the ones sent from the same account with the same nonce, requires paying gas fees?...
0
votes
1answer
21 views

Can increasing a tx gas fee slow down a transcation because it'll be put into the end of a queu in a pool?

I send a transction, then, every 1-2 hours, I keep increasing the gas fee. I've done it a few times. I've noticied that after several hours that my gas fees isn't still high enough. However, at some ...
0
votes
1answer
3k views

Are Ether gas fees higher than Cardano fees?

When trading ETH for altcoins on decentralized exchanges, fees right now can be around $60-150$ per trade. A tutorial on Cardano (ADA) smart contracts shows that they will have zero fees (for smart ...
0
votes
0answers
18 views

How Can Call High Gas Price Value in Go Ethereum Node via Web3

Hello ethereum node default value to gas price avarage. how can i calculate high gas with web3. I need get instantly call the high gas value. my current code let gas = Math.floor(parseFloat(this.web3....
3
votes
3answers
7k views

Are gas fees higher when the Ether price is higher?

If someone wants to move 10 ETH from an exchange like Coinbase to their hardware wallet, will gas fees be higher when the ETH price is 1,200 or 1,500? In other words, would it be cheaper to move the ...
0
votes
1answer
47 views

How can the transactions to this address always adapt to have higher gas price than all the rest?

Looking at the transactions from: https://explorer-mainnet.maticvigil.com/address/0xfD0E9d3f4Eee056B49DF062B70f766cFB13fEb01/transactions Looking at every block that a transactions is sent to this ...
0
votes
0answers
20 views

Pending Transaction. How long may it take? [duplicate]

I have a question about this specific transaction: 0xd0dfbefc699ba79c2ddd86b0f7176e3e6491534db0a57597ec7aab9ce3e71726 the transaction is pending for some days now. I offered 5 gwei as fee. Max Amount ...
0
votes
1answer
39 views

Remove ether from PoA private network

I try to setup a private network containing three nodes (bootnode, sealer, transaction node with rpc) and PoA. So far so good. The thing is I don't want to have any ether nor do I want to pay any gas ...
1
vote
0answers
18 views

How do I find the average gas price of a given block?

How do I find the average gas price of a given block? This doesn't appear to be an easily accessible thing in ethers.js or Web3.js, but hopefully I'm just missing something.
0
votes
1answer
185 views

How do I find the gasPrice of a confirmed transaction with ethers js?

How do I find the gas price of a confirmed transaction with ethers js?
0
votes
0answers
340 views

Set gas fee to a fixed value permanently in Metamask

At present, I can go to the advanced settings and specify the gas fee (in gwei) and gas limit manually. I'd like to make sure that this value is saved and re-used later on for the next few ...
0
votes
0answers
62 views

Consolidating "dust transactions" in account-based coins like Ethereum?

Suppose I have a marketplace where 100 buyers deposit 1 ETH each into 100 unique addresses and I know I will end up sending all 100 ETH to 1 vendor. Since the coins are originating from 100 ETH ...
1
vote
1answer
48 views

Maximum GAS price

When I launch an Ethereum transaction, I have to choose how much WEI I am able to pay for one GAS. This is a "bid" concept: If my transaction is very important and if I want to run it ...
0
votes
0answers
18 views

Multi transaction GAS

Let's suppose i have 5 customer. Each customer must give me 1 Ether. I have 2 solutions: I generate a single Ethereum Address and i give the same address to all my customers. I do not want to give ...
0
votes
0answers
149 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
475 views

Is it normal for a DAI vault to cost between $80 - $160 in gas fees?

I am trying to open a Vault for the first time with ETH-A as collateral. Do the below fees make sense? They seem quite expensive to me ... Additionally I see this:
0
votes
1answer
33 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
1answer
244 views

Best way to conver ETH to a layer 2 ETH or Wrapped ETH to convert to USDC or USDT?

I have a small amount of ETH ($100) and I want to use uniswap to convert it to USDC or USDT, but the fees of $20-$50 is a bit ridiculous. Is there a layer 2 solution that is WORKING that can convert ...
0
votes
0answers
23 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 ...
0
votes
2answers
54 views

Can a smartcontract offer free gas

I have wrote a smartcontract which will be called by a mobile device. This device will be outside. It embbed a software wallet (private key). But this wallet will own 0 ether because the device can be ...
1
vote
2answers
296 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
0answers
19 views

Will the tx fees of old contracts be greater or smaller than those of new contracts in ETH 2.0?

Will contracts that currently exist cost more or less to interact with after the ETH 2.0 upgrade? What about old contracts that call a new contract, or new contracts that call an old contract? Will ...
3
votes
1answer
620 views

SLOAD costs 800 gas - how is it possible?

I've got a very simple contract. It narrows down and measures cost of loading a storage variable: pragma solidity ^0.7.6; contract Bench { uint256 public data; function increment() ...
0
votes
1answer
1k views

How long can I expect to wait for a 20 gwei ERC20 launch? [duplicate]

Here's the transaction: https://etherscan.io/tx/0x9e34257bbb18e565a2154eb522085a30720e327b065342b5708c089d23e190cb I'm spending 20 gwei per unit of gas. This is all I could afford, I only have 10 ...
0
votes
1answer
6k views

5 gwei in gas, how long will this take?

I'm creating an erc20 contract and deploying with metamask. I only have 3 dollars in ether, so I could only afford 5 gwei for gas. It's been 3 hours, how long will it take? It looks like 40 gwei would ...
1
vote
1answer
205 views

Best Practices for Recommendation regarding Gas Price & Limit in a Dapp

I am developing a Dapp. I was wondering what are the best practices for user recommendation regarding gas price and limit in such a Dapp? Should I be using the following methods in my contract, or ...
1
vote
0answers
21 views

Reading gas limit inside solidity smart contract? [duplicate]

As we can read the gas left and the gas price inside solidity smart contract, is there any way that I can read the gas limit set for the transaction inside the solidity ?
0
votes
1answer
382 views

Transaction out of gas despite much higher gas price than almost identical transaction at same time that is fully mined

Two Uniswap txns calling swapExactETHForTokens that are almost identical (even same timestamp) except for the value and gas price, but the one with higher value and gas price runs out of gas and uses ...

1
2
3 4 5
7