Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

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

Gas estimation errored with the following message… Error: gas required exceeds allowance or always failing transaction

I made a smart contract, but i got an error while deploying it , after i specified the Gas limit of 3000000 and a random value (wei) , and clicking on Create , i got the following error : ( i am ...
1
vote
1answer
215 views

Alternative for String type in smart contract and Solidity?

Regarding the fact using String in contract is expensive, is there any alternative type in Solidity ? The input value (Payload) I want to set is as follows : {"SQN":4,"Node_ID":"...
0
votes
1answer
148 views

Offline signed contract throws 'exceeds block gas limit'. Why can't I deploy?

I'm trying to deploy a smart contract onto the Ethereum blockchain by signing the transaction on an offline computer and then transferring the byte code to an online system for deployment. Because of ...
0
votes
1answer
266 views

How to store 25 char string on erc20 token and cost?

I’m wanting to be able to create an ERC20 token that stores a 25 character long string with it. Just wondering if this is actually possible? Also if it is possible I’m gathering from the posts I’ve ...
1
vote
1answer
1k views

reliable way to get gas price [duplicate]

I've read that eth.gasPrice isn't reliable, because sometimes it suggests gas prices too low. Is there some API or something similar where I can get the current gas price? This is for an automated ...
1
vote
0answers
31 views

Miss aligned state loading/storing gas costs

For a smart contract idea that spins around in my head, I have the situation where I have to conserve the old values of a variable (no storage refund or cheaper SSTORE updates). As the value I write ...
0
votes
1answer
148 views

Block reward from transaction regarding block's gas limit

maybe it's a silly question or remark, but given that the current block gas limit is about 8,000,000 and the average gasPrice is about '15Gwei' ( I roughly looked at the chart "Transaction Count by ...
5
votes
2answers
2k views

How to get the transaction cost in a Truffle unit test?

How can I get the actual gas consumed by a sendTransaction inside a truffle test? In the following test, buyer sends an amount of 50 ETH to a contract: const EmptyContract = artifacts.require("...
0
votes
1answer
94 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 ...
0
votes
1answer
113 views

Who pays for gas in each interaction?

I am thinking of a scenario where there is a user (U) that wants to upload a smart contract to the Ethereum network to be run later by multiple users {U1,U2,...,Un}. For example, assume we have a ...
3
votes
3answers
5k views

How can I set the gas price while deploying a contract with web3.js?

I set up a Geth node on the Rinkeby network recently. And while I can send ordinary transactions in seconds without a problem, I can't seem to get a contract creation to happen in less than an hour. ...
1
vote
0answers
70 views

Estimating gas costs for large batch of transactions

I noticed on EthGasStation the following below the estimated gas prices: Note: Estimates not valid when multiple transactions are batched from the same address or for transactions sent to addresses ...
0
votes
1answer
201 views

Can't send ether to crowdsale contract (fail) + infinite gas bug on Remix

I'm a newbie trying to make a crowdsale contract in Ropsten (deployed a token contract very well before) but i meet some problems : I can't send ether to crowdsale contract, returning a fail status ...
1
vote
1answer
870 views

Understanding “eth_estimateGas” results estimating gas

I have been playing around with parity's "eth_estimateGas" call to determine different tokens gas requirements. Generally using this code: let transfer_data = contract.transfer.getData("<...
5
votes
2answers
4k views

How can I estimate price of data storage? [duplicate]

I'd like to make estimations of the cost of an application, and one of the things I need is the price to store n kB of data on a contract. In ether and in USD. Where could I find rates or prices of ...
0
votes
2answers
93 views

Is it feasible to perform signing with a private key inside a smart contract?

Is it possible/feasible to have a private key stored inside a smart contract and sign transactions with it or would the calculations be to pricey in gas? For example a smart contract should create ...
2
votes
2answers
679 views

Is gas consumed per contract call or during contract creation?

I know that there is a calculation about how much gas a script consumes. My question is is this consumption per contract call (i.e. by an Ethereum client) or does it only apply when the contract is ...
2
votes
1answer
50 views

Reducing storage write operations

Storage operations are very expensive and everything pales in comparison as soon as you start using them. So I was wondering, what clever way one could use to reduce the following storage write ...
2
votes
1answer
3k views

Send ethereum tokens with zero gas price

I have seen the following transaction: https://etherscan.io/tx/0x173fd250d63a62bb407f214ff924b49e1c90593572eab1a8c523783f2aa58ba3 And I've seen that the gas price is 0. How could I do the same? When ...
2
votes
1answer
976 views

What is the actual gasPrice used in a Truffle + Ganache environment?

It doesn't seem to match the Ganache UI, nor web3 gas price.
0
votes
1answer
310 views

Use full ethereum balance for token transaction

I want to use whatever ethereum is available in my account as transaction fee to send a token transaction. I know the gas I need, so in theory I thought the following formula would work: gasPrice = ...
2
votes
1answer
521 views

Is it ok to Use Javascript VM in remix IDE to know the Gas values?

Just wanted to know that using the Gas values generated for a contract in Remix IDE when Javascript VM option, does the Gas values are useful when deploying contracts to testnet or live, does the ...
0
votes
2answers
122 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 ...
3
votes
2answers
1k views

Unaffordable gas limit for my Ethereum based crypto-coin

The gas limit for single send transaction is about 21000 gas. Now I am creating my own Ethereum based crypto-coin, and I want to keep its conversion rate as 1 coin = 1 US$ and about 0.02 US$ as ...
1
vote
1answer
123 views

Is there anyway a smart contract creator can put a limit on the gasPrice(gwei) for a transaction?

I am looking at the possibility of creating a custom token on the Ethereum network & wanted to know if there is a way if i can put an limit on the gasPrice in order to prevent the so called "gas ...
2
votes
0answers
82 views

Early 2018 gas price volatility

What have caused the recent default gas price To go up (default was in some point near 100 GWei) To come down (now it seems to be 20 GWei) Specifically, was this because of Actual demand for ...
3
votes
1answer
161 views

Transaction fee restrictions with solidity

Can I restrict transaction fee (gas price) for the payable method of the crowdsale contract. And if I can, how? And one more question, if I restrict fee and call revert() - this transaction will be ...
0
votes
1answer
390 views

Why do my FAILED transactions get charged the max gas price?

I tried buying TEL on EtherDelta and had two failed transactions in a row, both charged at the max gas price, one after like 15 mins and the other instantly. How come I get charged for a failed ...
2
votes
0answers
43 views

Posted blocks on ethgasstation/Low gas price watchlist

Does anyone understand the posted blocks on ethgasstation/Low gas price watchlist? I would guess that posted block < mined block is always true - but this is not what I see there.
1
vote
0answers
373 views

Transaction Pending 5 days [duplicate]

0xdb651909881589110a34e4ec28691a367d6b0edd62f73268dbf6b569150b50d3 The above transaction has been pending for 5 days, low gas I guess, I sent to ether delta to make sure address was correct,before ...
2
votes
1answer
2k views

Deposit on EtherDelta Not Working [closed]

No matter what I set gas price to on EtherDelta.com when I try to make a deposit I get this error You tried to send an Ethereum transaction but there was an error. Make sure you have enough ETH in ...
0
votes
1answer
112 views

Can you neglect profitable transactions to increase mining profits?

As far as I understood, each miner can access a pool of pending transactions, select those that he likes, put them together in a block minding that they don't exceed the block's gas limit, and then ...
0
votes
1answer
1k views

Why are ether delta gas prices so high as of recently?

My question is about why the gas price and gas limit are so high as of lately on ether delta?
0
votes
1answer
349 views

Ethereum Crowdsale Tutorial - Can't Transfer Ether to Crowdsale in Solo TestNet - The Contract Won't Allow This Transaction to Be Processed

Im sure this is a very simple problem that one of the brilliant geniuses on this site should be able to answer! I am following the tutorial for Crowdsale found on the Ethereum website https://www....
0
votes
0answers
43 views

Will PoS lover the tx fees? [duplicate]

There's a lot of speak about PoS being more environmentally friendly and making transactions faster to be included in the blockchain but I haven't found any info on the fees. Will the minimum gas ...
0
votes
1answer
759 views

Why some transactions with lower gasPrice are proceeded faster?

I've been observing this chart on ethgasstation.info for some time. Those values are average from last 1500 blocks. Every time I look at the chart, confirmation time is shorter for gasPrice 1 gWei, ...
1
vote
1answer
381 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 ...
2
votes
2answers
1k views

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

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

Is it possible to get the exact amount of Ethers deducted in a 'simple' send?

I can specify a gas price and a gas limit. These give me the maximum values. I need to be able to compute the exact amount that is going to be deducted when I do a simple send (EOA to EOA transfers). ...
1
vote
1answer
4k views

Where can I find an Ethereum Gas Price chart on Ropsten testnet?

For the main Ethereum blockchain, we can have access to the history of ETH gas price here : https://etherscan.io/chart/gasprice I would like to have access to something similar for the Ropsten ...
1
vote
1answer
497 views

After-the-fact Fee calculation for ETH transfers

I'm working on a basic application to track ETH transfers, and I'm making use of the web3j Java API to interact with the Ethereum blockchain. My app is working, but I'm having trouble figuring out how ...
2
votes
3answers
920 views

Reasons to develop DApp when you have to pay for executing logic

I am relatively new to the blockchain technology. I understood that DApps have some advantage over regular web apps such as no payment services as paypal are needed, no login is required etc. However,...
2
votes
1answer
675 views

What will be the gas price when Eth will use Proof Of Stake?

I know that the cost of a transaction is gasUsed * gasPrice. Gas used cannot really change unless you change your smart contract code or the gas cost of EVM opcode. So the gas price is currently ...
0
votes
0answers
273 views

Obtaining Gas and Gas Price Solidity

I added the following two lines of code to my function: uint gas_remaining = msg.gas; //irrelevant code.... refund = refund + ((gas_remaining - msg.gas) * tx.gasprice); For some reason this is ...
1
vote
0answers
93 views

Solidity — refactor simple contracts to fix gas limit and avoid Checks-Effects-Interaction warning

The following pattern is something that recurs a lot in the contracts I am develping and when I run an analyser over it I get a couple of warning. Say I have two contracts as follows: pragma ...
5
votes
1answer
6k views

What is the relationship between Gwei and gas?

I know that a Gwei means 1000000000 wei, but when we send a transaction with 21000 gas, is that mean we send 21000 Gwei? please explain Gwei for me
2
votes
0answers
144 views

What are transaction costs likely to be after Casper? [closed]

It presently costs X to send a simple transaction. Assuming the price of ether stays constant, what is a theoretical estimate for the new cost of the same sort of transaction after Casper? i.e X/10?
0
votes
1answer
112 views

Transaction Starvation in Ethereum

A miner chooses a particular transaction on basis of its GAS price i.e. miner generally doesn't pick a transaction with a lower gas price if he has options of other transactions with more gas price. ...
2
votes
0answers
169 views

what is the lowest gas price that clients (Geth / Parity) relay

I read here that nodes (at least Geth) only relay transactions that have a gas price above some limit. What is that default limit currently? As also mentioned there it is probably not zero as that ...