Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Will gas be free in ETH 2.0?

Will gas be free in ETH 2.0? More generally, will gas ever be free? Is it feasible in near decades?
4
votes
1answer
218 views

Will Ethereum 2.0 gas cost decrease? and Storage cost of document hashes in a blockchain

I want to generate large number of transaction probably in thousands per day to store document hashes of certificates from Universities so that I can verify the integrity of documents through time ...
0
votes
2answers
27 views

Sending a transaction with minimum gas; will it ever complete?

About one day ago I sent a transaction with an average gas limit, but a set a price of 15 Gwei. The transaction is still pending nearly 24 hours later and is still pending; will it ever complete?
0
votes
1answer
22 views

What is the cost of inter-contract calls?

I have a contract with methods to create items and add them to categories. I want to create a wrapper contract that would combine several calls into one: create an item and add it to several ...
0
votes
0answers
13 views

How can I get the gas limit specified for a past transaction from web3?

I'd like to know the difference between gas limit specified and gas actually used by a confirmed transactions from previous blocks. For each transaction on Etherscan, you can see both the actual gas ...
0
votes
0answers
20 views

Warning Message: Gas Requirement: Compiling Multiple contracts Remix IDE

I am getting following warning message while compiling the test contract on Remix IDE : Gas requirement of function Test.send(address) high: infinite. If the gas requirement of a function is higher ...
0
votes
1answer
30 views

Does variables inside Event gets stored in blockchain?

Hey I have following event event Submitted(bytes32 indexed docHash); The event is called by a function function submitHash(bytes32 docHash) public onlyOwner() { Submitted(docHash); } It ...
0
votes
0answers
34 views

Dropped transaction can be automatically broadcasted on network by specified condition?

I have a transaction with nonce #30, because of low gas price this tx is dropped while I checked on Etherscan (case #1 dropped transaction not dropped and replaced #2 ref). Before this transaction is ...
1
vote
1answer
46 views

How to send signed transaction to blockchain from different account

I have user's private key to sign a erc20-token transfer transaction in my DAPP. Now I want to send this transaction from different account so that 2nd account pay the gas fee. Is it possible through ...
0
votes
0answers
22 views

Web3j 5.0.0 and event listener

I'm using Web3j 5.0.0. I would listen to events of a smart contract. So, I write this.getContract().tokenMintedEventFlowable(DefaultBlockParameterName.EARLIEST, ...
0
votes
0answers
20 views

Ethereum token transaction taking too much time to confirm [duplicate]

I was transacting an ethereum token CRO crypto coin out of wallet. There was 3 fees options. I chose fees for slow transaction time. And it told the transaction should confirm in 30 minutes. But now ...
0
votes
0answers
23 views

Why are these high fee transactions not being mined?

Looking at the state of pending transactions on Etherscan I noticed two transactions that have a gas price much higher than that of the average network fee, yet they are not being mined. The ...
6
votes
1answer
620 views

How to retrieve ERC20 from a hacked address monitored by a bot?

Check it out: https://discordapp.com/channels/554623348622098432/633092550407749652/714325610050355260 The address that was hacked: https://etherscan.io/address/...
0
votes
2answers
77 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 ...
2
votes
1answer
72 views

Calculate transaction costs for storing data

I'm trying to figure out how the transaction costs are calculated for a transaction that is storing data on the Ethereum Blockchain. It seems I'm always off. Here is my way of calculating (I'm using ...
1
vote
1answer
30 views

Does Gas Price Affect TX minng priority [ROPSTEN]

Since ether, on the ropsten network, virtually isn't worth anything does the gas price for transactions affect the priority in which they're mined? I'm asking because web3.eth.getGasPrice() (on the ...
0
votes
2answers
44 views

Why are transaction fees defined by both gas price and gas limit, and not just one cost limit?

I understand that the gas limit is there so that we don't lose all our ETH when something goes wrong. The gas price is there to define how much 1 gas costs. But the fee is always gas price * gas limit,...
0
votes
1answer
21 views

Can someone explain Block 9193687: Why are there so many zero gas price transactions included?

Block 9193687 (Link: https://etherscan.io/txs?block=9193687&p=1) contains 79 transactions, of which 75 have a gas price of 0. These transactions are also not all from the same address. How does ...
0
votes
0answers
28 views

intrinsic gas too low in Ropsten

I am trying the sendSignedTransaction in Ropsten and I assigned the value of gas limit and gas price: gasLimit: web3.utils.toHex(21000), gasPrice: web3.utils.toHex(web3.utils.toWei('10', 'gwei')) ...
0
votes
1answer
46 views

How to convert gasPrice from ETH Gas Station API to US dollars?

This is a simple call to https://ethgasstation.info/json/ethgasAPI.json { "fast": 111, "fastest": 180, "safeLow": 55, "average": 80, "block_time": 14.761904761904763, "blockNum": 9819011, ...
0
votes
1answer
18 views

What is the gas cost of recovering a wallet address from a signature using Solidity?

As titled. I understand that there's an ecrecover function in Solidity. Can I use it for recovering a wallet address from a signature? Is it cheaper than a Keccak hash operation?
1
vote
1answer
30 views

Is it cheaper overall to store a keccak hash or to store a ripemd(keccak) hash?

As titled. I'm learning to build a DApp and I'm wondering if it's worth it to add the extra RIPEMD layer over keccak for a shorter hash to reduce storage costs.
3
votes
1answer
77 views

Why is Etherscan's “Pending transactions” count so huge?

Etherscan's pending-transactions count has been in the 60k-80k range for a few days. Why is this? If I look at etherscan's current pending-transactions list, sorted by gas price, I see transaction ...
1
vote
0answers
16 views

Gas price is reverted to be zero after updating using REST API on a Kaleido node

For those who have used Kaleido nod I'm running a PoA node on Kaleido and I want to set the minimal gas price for the node. I followed the instruction below to update a node configuration using REST ...
1
vote
1answer
30 views

Multiple transactions with same nonce, pending ones makes me crazy rest is ok, but why?

I am playing with smart contracts in code, sending/receiving transactions to/from it. Some transactions with lower gasPrice are stuck in a pending state. However, having same nonce with a higher ...
0
votes
1answer
24 views

Are there any API to get real money value equivalent of a transaction?

I know that etherscan shows the total cost of a transaction both in eth and in US dollars. Is there any api of any kind to be able to get instant value of eth when I send a transaction?
1
vote
1answer
27 views

How to calculate total cost of a transaction

I've a transaction that consumed 276798 of gas, paid 900000000 (wei I think) Is the total cost gasUsed x gasPrice, right? Total = 249,118,200,000,000‬ (wei I think) So how many ether is ? 0....
0
votes
1answer
29 views

GasPrice: is dipendent by the moment of the call and/or the network?

I'm testing a system to store a small amount of data on the blockchain using a contract. So I've some js using web3.js to make a call to a contract function that mutates states. I obtained, using ...
0
votes
0answers
94 views

Using web3.py to send a 0 price gas erc20 transaction

Sorry about the formatting, I’m on mobile I'm trying to push an ERC20 Token transaction with 0 gas price using web3.py. Although when I set the gas price to 0, I receive the following error: {'code':...
0
votes
2answers
40 views

How can I send tokens to large number of addresses?

I have to send 221,000 tokens (ERC20) to 6477 different addresses. Airdrop guy used some automatic sending app and that tells 1.94 ETH is needed as approx cost of operation to send all this. Is there ...
3
votes
1answer
401 views

What's the vulnerability in my contract?

I've got a contract deployed at 0xe559835D7979dAe994331DEfaEc2FBA057E56C27 on the mainnet. Every time I go to call the payable function, which is solve, a bot beats me to it. My transaction gets ...
1
vote
3answers
58 views

How can I get proper gas price for fast transaction?

How can I get proper and optimized gas price for fast transaction in around 10sec? I want to make my transactions to be included stably and fast in blocks. Recently I using value of "fast" returned ...
3
votes
3answers
279 views

Can I mine only low-value blocks?

I'm new into this world. I (think to) know that usually blocks are mined from most rewarded to less rewarded. So if I offer very low gas price for a transaction, it can be take a long time to be ...
0
votes
0answers
11 views

Is there same offical article about how Ethereum Gas Tracker calcluate price?

Is there same offical article about the approach how ethscan.io's gas tracker get price and time? I think it calculate form the transaction hisotry in last 1000 block.But no article or code can be ...
0
votes
0answers
27 views

How Gas Cost is defined in EVM gas table?

i was checking into EVM gas table (https://docs.google.com/spreadsheets/d/1n6mRqkBz3iWcOlRem_mO09GtSKEKrAsfO7Frgx18pNU/edit#gid=0) (even though it is old sheet) Have few question: On what basis for ...
2
votes
1answer
39 views

Can I estimate the total gas limit of several dependent transactions?

Assume two dependent transactions A and B. Transaction B depends on transaction A and will fail if transaction A has failed. I would like to estimate the gas limit required for the success of both ...
0
votes
1answer
26 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
2answers
49 views

Internal contract-to-contract call

I am confused with the following sentence in the Solidity documentation: During the execution of the fallback function, the contract can only rely on the “gas stipend” it is passed (2300 gas) being ...
1
vote
0answers
20 views

How can we increase block gasLimit without reinitialiting the genesis block? [duplicate]

Is it possible to increase block gas limit without reinitializing the blockchain ?
2
votes
1answer
32 views

What makes a transaction not mined and stay in txpool?

What Makes a transaction in txPool not mined ?
1
vote
1answer
95 views

What is the unit for the tx.gasprice?

Is it a wei, kwei, mwei, gwei, ... Something else? The API doesn't say much.
0
votes
0answers
12 views

How to use oraclize fee from contract balance instead of sender's wallet? [duplicate]

I am using oraclize query. I have a function that user's invoke but I dont want users to pay the gas fee for oraclize query, I want that fee to be paid by my contract balance, and if my balance is not ...
0
votes
0answers
22 views

Is Gas consumed in boolean operations that do not change contract state?

Imagine I've created a voting contract, and I'm the owner of this contract. I'm going to deploy it and create a front end to interact with it. Within my contract i've everything secured to add ...
0
votes
2answers
52 views

How to reduce the gas price for complicated smart contracts?

This is my smart contract's calculateReward function: function calculateReward(uint256 _amount, address _sender) internal view returns (uint256) { uint256 reward = 0; for (uint256 i= ...
1
vote
1answer
172 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
21 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 ...
1
vote
1answer
54 views

How can I reduce the gas price for the fallback function?

Below is my fallback function for ethereum. It currently require 91000 gaslimit which is way more than 21000. Metamask always starts the transaction with 21000 gas stipend due to which transaction ...
0
votes
1answer
474 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 ...
-1
votes
1answer
30 views

GAS price validation for transactions in OLD blocks

How does Ethereum verify GAS price stated within transaction, to be high enough for transactions stored in past blocks? Does each block include an average GAS-bid experienced by miner at the moment ...
0
votes
1answer
53 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
2 3 4 5