Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
4
votes
2answers
657 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
1answer
24 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
1answer
322 views

How can I distribute funds to present stakers efficiently?

I am building a smart contract which keep the token holder's eths for a while and give them rewards when they withdraw. The reward is given from the ethers collected by early withdraw of people. If ...
0
votes
0answers
10 views

Type-2 Transactions

There are a couple of tx-hashes such as txhash1 and txhash2 that has Gas Price == Miner Tip attirubute. How it that possible? Can you not pay any base fee and just pay everything to miner?
0
votes
0answers
14 views

Where do bot front bot runners get initial liquidity?

In order to pull off front running attacks or arbitrage, a person who runs a bot has to have enough liquidity, doesn't he? For instance, to beat a transaction of 100 ETH he'll have to do this amount ...
0
votes
0answers
14 views

When is the best time to make a ETH transaction without paying high gas fees?

Currently the gas prices are 100 gwei at 6AM EST. It would cost me $50 worth of eth to interact with a smart contract. When is the best time and day to do these transactions? Is there some type of ...
1
vote
0answers
20 views

How can exchanges afford to offer free deposits for ETH and ERC-20 tokens?

The question has been asked previously but the accepted answer does not hold a candle to reality: In both cases, the exchange pays the gas fee to send the tokens to the hot wallet. That's why the ...
1
vote
1answer
899 views

Transaction dropped. How to increase gas fee?

I sent some ether using Ledger Live, but the gas fee was too low. Id like to increase the gas fee. I was told I can do this via Ledger Etherum Wallet for Chrome. However, when I open Ledger Etherum ...
3
votes
1answer
202 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. ...
0
votes
2answers
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 ...
0
votes
1answer
42 views

Getting current base fee from json rpc

I'm looking for a way to fetch current base fee using JSON RPC (and go-ethereum ethclient.Client as client) I'm aware of new JSON RPC eth_maxPriorityFeePerGas which gives me second parameter - but ...
2
votes
1answer
52 views

I set a 3 gwei for gas price. Now my transaction has been pending for 48+ hours now. But blocks aren't even full!

I tried to set a gas price of 3 gwei for interacting with a smart contract. Now the transaction is pending for 48+ hours. If the blocks aren't full, why dont the miners pick it up? I can bump the fee ...
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
20 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 = ...
1
vote
1answer
220 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 ...
0
votes
2answers
157 views

Sending ETH to ICO

How much ETH should I deposit in a wallet to send 1 ETH nett to an ICO considering gas and fees. I have already viewed an answer which confirms that it needs to be more than 1 ETH but the answer ...
1
vote
1answer
85 views

Can queue of pending transactions will be confirmed if send last transaction with high gas price?

I have several pending transactions from the same account with a low gas price. What if I send one more transaction with next nonce but high gas price? Can it help to mine all pending transactions ...
1
vote
1answer
34 views

If blocks aren't full, why can't I set a gas fee of 1-10 gwei? Who dictates that it needs to be 20-30 gwei when blocks aren't even full?

If blocks aren't full, why can't I set a gas fee of 1-10 gwei? Who dictates that it needs to be 20-30 gwei when blocks aren't even full? And where is the best place to adjust my gas fee if I don't ...
3
votes
2answers
4k views

How to get Safe Low, Standard and Fast gas prices?

I was relying on web3.eth.gasPrice() to get the safe gas price for my transactions, but unfortunately this doesn't give accurate results (check eth.gasPrice is returning less value than expected). But ...
0
votes
1answer
3k 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
1answer
16 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 ...
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
206 views

Why, after the London Fork, the average gas price of mined blocks is so lower than the needed gas price to have transactions included?

I understand the reason behind empty blocks but it seems to me that after the EIP-1559 the average gas prices of the transactions in the mined blocks are really low compared to what is the needed gas ...
8
votes
2answers
694 views

eth.gasPrice is returning less value than expected

As mentioned in documentation eth.gasPrice returns the current gas price. The gas price is determined by the x latest blocks median gas price. I was relying on this method to estimate current gas ...
6
votes
1answer
22k views

Fees are too Damn High to send $20 worth of USDC. How can one minimize these fees?

It's 2020 September 3. Fees to send 20 USDC to someone is about $10-15 worth of gas fees. How can I minimize the gas fees when using metamask? And is it true that if I set the gas fee too low, I would ...
0
votes
1answer
626 views

Gas price and limit with Truffle deployment in Ethereum

I am developing a smart contract in truffle. I'm having some trouble understanding how GAS works in Ethereum. I used the following parameters in my Rinkeby test net: gas limit: 4600000 gas price: ...
11
votes
4answers
13k views

How to get the actual Gas price?

Is there a way to get the lowest and average price miners are asking for gas? Some statistics sites seem to have prices but they are outdated.
0
votes
1answer
106 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 ...
6
votes
1answer
110 views

How does EIP-1559 make Ethereum fees better?

I have a few questions that are mostly related to each other. I don't understand how EIP-1559 makes it a better way than the current one about fees. Since EIP-1559 brings priority fees and miners ...
0
votes
1answer
23 views

Transactions that paid 0 fees

I took a sample of transactions from 2021-07-03 till 2021-07-05 and there seems to be a lot of transactions that paid 0 ETH in fees: `as.Date(dt)` count `min(dt)` `max(dt)` <...
0
votes
0answers
20 views

Is it possible to pay low gas price for low computation transaction?

I'm trying to update storage variable in my deployed smart contract every 5 minutes. Though this needs low computation power and therefore requires low gas amount, it is hardly payable as gas price ...
0
votes
0answers
19 views

Nested contracts gas fee implication

Let’s say I have a contract calling another contract calling another contract. Does this also impact the fee for executing the first contract?
0
votes
1answer
279 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 ...
2
votes
1answer
1k views

Apparently some people send transactions with zero gas and positive gas limit, how do they do this? (and I am NOT planning to this but how)

Have a look at this transaction for example: https://etherscan.io/tx/0x11d96986d36240a5e5e7eab78879aa841631705370e707f15f1488a0b9d6704a 0 gas, 0 ether but plenty of tokens transferred. Obviously the ...
0
votes
1answer
40 views

How to get Low / High gas price with ethers.js?

On etherscan gas tracker there are three gas prices: Low / Avg / High. The code var gasPrice = await provider.getGasPrice() only returns the Avg price. Sometimes I need the Low/High price, how to get ...
7
votes
5answers
4k views

How are miners minimum acceptable gas price determined?

In section 5 of the yellow paper, it states "there will be a (weighted) dustribution of minimum acceptable gas prices.." My question is what, if any, is the enforcement mechanism that ensures this ...
0
votes
1answer
219 views

Question about Gas and Gas Price

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

Does it cost more gas to call a function more than once in another function?

Does it cost more gas to call a function more than once in another function? For example: function getValue() public returns(uint){ return 5; } function getOtherValue() public returns(uint){ ...
0
votes
1answer
185 views
1
vote
1answer
202 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
1answer
146 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 ...
0
votes
0answers
16 views

Hardhat config not working

I have defined from gas price gas limit in the config file but it picking up the default one not what I have defined.
1
vote
2answers
864 views

Coinbase wallet 12 word seed used on metamask?

I have a couple of issues. I have a Coinbase acct. I have a number of coins on there. And, of course I have the 12 word seed. If I use this 12 word seed and import it on metamask will all my coins ...
0
votes
1answer
56 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
1answer
41 views

very expensive remix NFT deployment

I'm testing a hello world NFT deploying with remix but the transaction without anything, says is $100?? why is this so expensive? what am I doing wrong? here the import is the only code on the .sol ...
0
votes
0answers
24 views

Lifecycle of transaction when sent via web3

I'm trying to optimize the speed between the time the tx is sent and the tx is mind on polygon (matic) blockchain via web3. I tried to raise significantly the gasPrice but it still takes a lot of time....
1
vote
1answer
459 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
1answer
2k 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
0answers
26 views

Calculate estimated transaction time using web3.getGasPrice?

I am trying to estimate the time a smart contract will take to execute a particular function, based on a user-selected gas price. I have seen time estimates in various explorers - like so, on ...
0
votes
0answers
14 views

What is the gas cost when manipulating on-chain variable multiple times within one transaction?

Changing variables that are stored on the blockchain is expensive. How are gas costs calculated if I change one variable multiple times within the same transaction? For the sake of having a simple ...

1
2 3 4 5
7