Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

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

Error: Cannot estimate gas; transaction may fail UNPREDICTABLE_GAS_LIMIT

I have this error when I try to deploy with Fuji and also with a Subnet, but using Hardhat local node I have no problems. I have tried different options. Here is my hardhat.config.js with the ...
1 vote
2 answers
28 views

Goerli more expensive than 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
2 answers
29 views

How can I set Gas Price in Solidity?

Can I set gas price in internal transactions, of my functions? For example: // SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface Itest { function sendToken(address to) external; } ...
3 votes
2 answers
71 views
+50

Finalized Empty blocks with 0 transactions and 0 block reward

This block was finalized 21 mins ago from now and there is one exactly like this waiting to get finalized Here is the link of that. Both of them had 0 transaction, 0 block reward, 0 extra data, 0 gas ...
  • 76
1 vote
1 answer
18 views

is OPCODE applicable for sending ethers from wallet to another account?

I know smart contracts are converted to bytecodes and they are executing OPCODES in the EVM. But I want to know, what OPCODES does Wallet to wallet transactions have?
  • 72
2 votes
1 answer
27 views

How to get gas price in Solidity smart contract?

I'm on the most recent version on solidity. "tx.gas" and "tx.gasprice" both dont work. They error with "Member "gas" not found or not visible after argument-...
0 votes
0 answers
11 views

Is storing two copies of a mapping of a struct cheaper than storing one copy and two mappings of integer?

I am working on a smart contract that stores transactions of complicated objects (a struct with 11 properties including strings, addresses, boolean, and uint256). I want each user to have access to ...
  • 13
1 vote
1 answer
12 views

Effect on Gas Fee from Eth Merge and expected time to see changes

I am working on an NFT project for a client and I would like to know if I should wait to deploy the smart contracts to the mainnet for lesser gas fee as it is a financially restricted project and ...
0 votes
0 answers
18 views

explain get chainlink VRF fee cost

Hi can somebody explain to me every variable and operator of this function
1 vote
1 answer
13 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 ...
  • 11
0 votes
0 answers
8 views

How to set a proper gas fee for a transaction in js

I am having trouble applying a proper gas fee when I am trying to call a smart contract in js. I am using this library and am trying to use the sign transaction function to do a transaction. In my '...
0 votes
1 answer
29 views

ETH Transaction cancellation and overriding

Consider your transaction is pending in mempool for too long and you want it to be validated ASAP (I) or cancelled (II). I) AFAIK In this case you are suggested to make the same transaction again (...
0 votes
0 answers
31 views

Transaction Effective Gas Price

I am developing in Go and I have a question that I have been looking for the solution for a long time and I am not able to find it. How can I find the effective gas price used in the transaction? Not ...
  • 1
0 votes
1 answer
24 views

Gas allowance geth

I have deployed an Ethereum private network PoA with geth connecting 3 nodes: 2 nodes in aws EC2 instances and my own laptop. My purpose is to store strings in the network, so therefore, i have ...
  • 13
0 votes
1 answer
29 views

Which transaction will be prioritised: send or send by approved

Let’s say my address is X and I have 10 USDT there. Address Y is approved spender of wallet X USDT funds, meaning that address Y can send USDT from address X. Address Z and W are some other addresses. ...
  • 11
0 votes
0 answers
20 views

Ethereum 0 gas cost Blockchain

Hi guys, I am looking for an Ethereum Blockchain like Quorum to use like a database for JSONs. I am actually using geth PoA with one node un my home and two nodes in AWS EC2. I have been facing some ...
  • 13
0 votes
0 answers
16 views

Which blockchain uses oracle to determine gas price?

I just only want to know that is there any blockchain which determines gas price by using oracle?
0 votes
0 answers
49 views

Conditional gas settings for BSC transactions with MetaMask

The main objective is to conditionally set the gas price for the transaction on MetaMask in BSC. I understand that MetaMask by default provides with the settings or to speed up the transaction but the ...
1 vote
2 answers
45 views

How to calculate GWEI back to ETH/USD?

According to Owlracle, right now the recommended Ethereum fees are: According to them, an Ethereum fee of 90.73 GWei is equal to roughly 7.7 USD. Can anyone explain how they get to that number? I ask,...
0 votes
1 answer
23 views

Extremely high gas fees

I'm paying 0.38 gas fees in this function. There's something wrong with it? function claim() external { require(allowed[msg.sender] == true, 'This address is not allowed to perform withdrawns'); ...
0 votes
0 answers
7 views

how to sell for free on opensea without gas fees

I have used the "code STACK r" create-10k-nft-collection you tube instruction to create 10000 images and mint 80 to open-sea. however when i try to sell then. it is asking for gas fees. ...
  • 1
0 votes
1 answer
231 views

Gas price limit in metamask Rinkeby

Unknown processing time Max fee:0ETH This error occurs while testing a front end application with smart contract. code :- //this is deposit function function Depoist(){ var depAmt = document....
1 vote
1 answer
99 views

Why do my blocks not have a baseFeePerGas property?

I've got a private network that's using the clique consensus protocol and is running using Geth (if that's relevant). I have been confused about gas and transaction fees, so wrote a script to look at ...
  • 111
0 votes
0 answers
27 views

How to estimate the transaction size of a Blockchain (Ethereum) from the given data?

The following is the data given for different blocks; The 'size' column here refers to the block size. The aim is to estimate the transaction size for each block and compare that with the block size. ...
0 votes
0 answers
31 views

Minimun gasprice on geth

I have created a private miner network and I want to put a minimum gasprice. I have a problem because even if I put a gasprice with --miner.gasprice, I can still make transactions with a gasprice of 0....
0 votes
0 answers
64 views

How to find gas settings for different chains?

I am using ethers.js and hardhat to deploy to different chains (testnets), but I don't know where to find the right gas settings. For example, if I wanted to deploy to the Aurora Testnet and used the ...
  • 141
0 votes
0 answers
227 views

I get this error --We were not able to estimate gas. There might be an error in the contract and this transaction may fail,

when I try to transfer ownership, I get higher gas fees like 0.35bnb, and this message Transaction decoding is not available for chain ID 56, can any help? the contract has been added some liquidity ...
1 vote
2 answers
210 views

How do node providers (e.g. Infura, Alchemy) determine gas pricing on contract writes?

When writing to a smart contract, we can specify the priority and fee per gas. await contract.connect(owner).foo({ maxFeePerGas: "<YOUR FEE>" maxPriorityFeePerGas: "<YOUR ...
  • 25
0 votes
0 answers
28 views

How do I determine the gas limit properly?

So I developed a minting website. But I don't know how can I determine and set the gas limit for users. I am new to blockchain.
0 votes
0 answers
113 views

global variable vs state variable access gas cost

what costs more gas, accessing a global variable (like block.timestamp) or a state veriable (in particular, a value in a struct in a mapping, like infos[id].time) ?
1 vote
1 answer
35 views

Fee for making a transaction Vs fee for recording a transaction

I'm in the process of learning how to write smart contracts and make transactions using the Ethereum blockchain. I'm following this tutorial and it looks like making a transaction and then adding a ...
-1 votes
1 answer
25 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 ...
0 votes
1 answer
33 views

How to cover the gas fees?

I want to create a solidity smart contract (ERC20) for a play to earn and I would like to know how to reward the winners without them having to pay gas fees when they claim their winnings. I think ...
  • 103
1 vote
0 answers
571 views

Set maxFeePerGas and maxPriorityFeePerGas dynamically in ethers js

I want to set the value of maxPriorityFeePerGas and maxFeePerGas these two parameters when sending a transaction, say 10 gwei greater than the response from getFeeData() function. /* provider....
1 vote
0 answers
43 views

Eth-gas-reporter typeError

I am trying to understand how the eth-gas-reporter works but I keep getting TypeError: invalid reporter 'eth-gas-reporter' when I ran truffle test. Specifically the output is: Using network '...
0 votes
0 answers
20 views

Getting incorrect GasPrice from tx type 2

Having transaction sent from Metamask (ropsten network): 0xddd70e7d8dbd3cf5c0618501911b045464ae2087bd537aa538f34b8c9600dcc7 I'm watching transactions in new blocks using golang, and when tx match ...
  • 1
1 vote
2 answers
202 views

High Gas Flashbots Transaction

I'm trying to better understand flashbots impact on frontrunning. Can anyone help me understand why this sandwich attack tx from a Flashbots bundle would pay such a high gas price? Here is a similar ...
  • 123
0 votes
0 answers
333 views

How to automatically get gas and gas price average values in web3.js?

I want to automatically get gas and gas price averages in web3.js and update them periodically. Here are the values (low, average, high) for gas prices. But they are constantly changing, and changing ...
  • 117
0 votes
0 answers
33 views

Do you lose miners tip (priority fee) when transaction is reverted?

When a transaction fails or gets reverted do you lose miners tip aswell as gas fee? Also when it says "Error: internal transaction reverted" does that mean I got outgassed by someone else ...
0 votes
0 answers
22 views

Gas fee for deploying smart contract

From ETH gas station, I see that the fee is relatively low. However, when I tried to deploy my own smart contract, why does it cost so much more? Is it a way to deploy my smart contract cheaper? ...
0 votes
0 answers
32 views

How to use EIP-1559 gas instead of legacy gas in 1inch APIs?

I'm developing a web application (both frontend and backend) that executes swaps through the 1Inch APIs. When executing a transaction, it looks like it's using the legacy gas. However, I would like to ...
0 votes
0 answers
278 views

Transaction underpriced on Metamask?

I'm trying to burn one of my ERC721 tokens in my deployed contract but as you can see from my image the transaction fails with that error even if I did not touch anything when metamask prompts me to ...
  • 169
0 votes
0 answers
59 views

Can we sign and approve a transaction or call a function from our NodeJS Backend without involving metamask?

I am creating an NFT marketplace where I need to accept fiat payments. I am using stripe and after confirmation of fiat payment, I want to call the transfer function of my smart contract from NodeJs ...
0 votes
1 answer
27 views

Does it cost gas to cancel a transaction? Can I replace / speed up the transaction to just 1 gwei then cancel to reduce fees?

My transaction is stuck, but can I speed it up by replacing the fee with 1 gwei then cancel it to reduce the fees to cancel? I tried to cancel and speed up but its still stuck. I check etherscan and ...
2 votes
0 answers
120 views

Do providers block transactions sent with a too low gas fee?

I am getting the following error when deploying a contract: ProviderError: err: max fee per gas less than block base fee, address ..., maxFeePerGas: 45000000000 baseFee: 63475853125 (supplied gas ...
  • 1,279
1 vote
0 answers
46 views

What settings should a private PoA blockchain have to be free to use? ( No ether in use )

I am a total noob in creating blockchains, and I am trying to make one using geth with PoA. I want to make a PoA private blockchain where transactions and smart contracts ( usage and deployments ) are ...
0 votes
2 answers
148 views

How to integrate Chainlink Fast Gas oracle

I am trying to estimate the gas fee in USD for a function call. I came across the term "Chainlink Fast Gas oracle" but I couldn't find any documentation on how to use this in a smart ...
  • 138
0 votes
1 answer
21 views

Any alternative to while loop in conditional scenarios in solidity?

I am developing an NFT Marketplace with Dropsite module where free NFTs will be Distributed randomly. There are 3 categories of NFTs with fixed number as follows: Platinum: 150, Gold: 350, Silver: 500 ...
0 votes
2 answers
170 views

Understand the output of eth-gas-reporter

So, I am using the eth-gas-reporter package to understand how much gas functions costs (via hardhat test). But I don't understand the output. What is the meaning of 5 gwei/gas,calls, what are the ...
  • 138
0 votes
1 answer
63 views

Does it make a difference using multiple setter functions vs a single generic one?

Let's say I have an enum and set the default: enum Status { INACTIVE, FAIL, SUCCESS, PENDING } Status public myStatus = Status.INACTIVE; I'm wondering if one approach to updating ...

1
2 3 4 5
10