Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
4
votes
2answers
2k views

Are smart contracts expensive?

I have a Python program using stack operations and string concatenations. It runs in less than a minute on a particular input, doing about 100 million string operations. Doing this number of ...
2
votes
2answers
366 views

Should I set an extremely high gas price while participating in a popular token crowdsale?

Am I right that Gas amount in this case is constant or at least predictable How to figure it out? Using this answer? - How do I know how much gas to use when calling a contract? Or maybe there is ...
1
vote
0answers
99 views

What would be the probability for miners having very low gas price to deploy a transaction?

Here is guide for the Gas price in ETH unit Calculation: If 1 ETH is $10, 1 gas will cost 0.00000002 * 10 dollars. If ETH is $10, 21000 gas will cost 0.00000002 * 10 * 21000 = 0.0042 ...
2
votes
1answer
2k views

Gas Price Calculation

I have this code: pragma solidity ^0.4.11; contract Bank { struct Balance { address owner; uint vault; uint profit; } Balance balance; mapping (address => ...
3
votes
1answer
5k views

Can gas price be fixed under 2 gwei?

I see that 20 gwei is the default gas price. A simple token exchange fee is around 0.5$ at the current price (230$). Reducing gas to 2 gwei takes more time to confirm transaction but reduce the fee. ...
0
votes
1answer
56 views

Contracts with many to many payouts — is this unrealistic?

I'm thinking of writing a contract in which the payoff is proportionately split amongst N recipients. Is this intractable in ethereum since as the number of recipients grows, this would require N ...
4
votes
1answer
171 views

How does gas price / deployment cost scale with network size?

Holding ether/usd price constant, how does the amount of gas for a transaction scale as more ethereum nodes are added? Does it become more expensive to execute the same transaction, since there are ...
1
vote
2answers
3k views

Is there any GUI Ethereum Wallet that let's you manually set gas price?

Is there any GUI wallet that lets you manually set the gas price? I've tried MyEtherWallet and Mist but both only have a sliding fee bar with an upper limit to the fee. Is my only alternative a ...
3
votes
2answers
2k views

What is maximum limit of GAS in a smart contract

Can you please explain the concept GAS in smart contract properly if possible with example. And what is the max limit of GAS in a contract? It is clear if i use more gas i have to pay more...so ...
6
votes
1answer
572 views

Since the price of ETH has gone up 10x in 6 months, should I be lowering the gas price for my transactions?

The price of ETH has gone from ~8 USD/ETH to ~90 ETH/USD in 6 months, but when I view transactions on the blockchain (example), I see that most people are still using the default gas price of 2e10 wei/...
1
vote
1answer
383 views

How do ethereum Dapps coins affect ethereum price? [closed]

I mean, if, for example price of Akasha coins will rise, shoult it affect price of ethereum?
2
votes
2answers
118 views

Will sharding allow for a much lower gas limit?

The current gas costs are for all nodes to process a transaction or contract function call. Once we have sharding, only a subset on the nodes(1 shard) will process that transaction/contract function ...
8
votes
3answers
857 views

trouble matching gas used in transaction with difference in account balance

I've fired up my testrpc and deployed a simple HelloWorld contract using truffle. I send a simple transaction to my contract and I log my account balance before and after the transaction. ...
2
votes
0answers
530 views

Why is there a difference between eth.estimateGas and the real cost in testRPC?

When I want to deploy a smart contract, I use the eth.estimateGas before deploying my smart contract. This gave me 688180 Gas. let bytecode = compiledContract.contracts['Document'].bytecode; let ...
1
vote
1answer
55 views

How is abuse of 'Calls' handled on Ethereum?

If I read correctly, Calls which are read only operations do not cost any gas. Calls can have computing operations. Like currency conversion, loops, etc. I could for example host a contract with a ...
6
votes
1answer
1k views

Is there a 'default' gas price and does it change when price of ether relative to fiat rises?

I understand how gas pricing works, so that is not my question. My question is, as the price of ether relative to fiat (US $) rises, does the 'default' gas price lower (if there is such a thing as ...
2
votes
0answers
50 views

Gas prices for code execution [duplicate]

I am currently looking for the costs to execute a simple "Hello World" contract, where would I be able to find or estimate that? I have tried some googling but to no avail. Br NN
4
votes
2answers
2k views

Simple example for gas cost

I'm totally new when it comes to Ethereum and have a few questions when it comes to gas costs (I know of the 1.0 table but it doesn't really help me to find out what I need) If I simply want to ...
3
votes
0answers
564 views

The gas price on the Ropsten test net today rose from 0.211 ether per million gas to 1.8 ether per million gas, why?

Seems like Ethereum adjusts its gas price to meet demand. How does it do this?
3
votes
1answer
244 views

Does gas price increase under heavy load?

Does Ethereum adjust and increase its gas price during times when there is high demand?
2
votes
1answer
2k views

How is the gasPrice generated in ethereum

while I execute eth.gasPrice via the geth console,it returns the current default gasPrice 20322509741, so how is this default value generated will it changes now and then according to the market ...
3
votes
1answer
1k views

When calling a smart contract function, who gets paid and how much does the caller pay?

This is an extended question to What is "gas" and transaction fee in Ethereum?. Who gets paid and how much does the caller pay? Let's make some assumptions: There is a function F which ...
4
votes
1answer
3k views

Why “Insufficient funds” error?

I'm trying to send a transaction into testnet from an account having a balance of 516,561,000 Babbages. According to my calculations, this is exactly the cost of the transaction to perform. ...
6
votes
1answer
473 views

Is it possible to mine my own txs with no fees?

It seems like minimum tx fee is around .001$ in Ethereum (maybe a little bit less) but I was wondering about the possibility of performing zero fee transactions, mining them by myself. Obviously, ...
3
votes
1answer
1k views

Setting up gasPrice in testrpc doesn't influence the transaction cost

Testing this function: function withdrawAll () public stopInEmergency () { if (!msg.sender.send(12 finney)) { throw; } } My truffle test: it("Should let correct payouts and ...
4
votes
1answer
940 views

Need help filling in GASPRICE and STARTGAS fields

I want to create my first transaction. There are several fields I need to fill in. From ethdocs.org: Transactions contain: ... STARTGAS value, representing the maximum number of ...
5
votes
1answer
4k views

Gas, gas price, gas cost

I have read in the documentation that the miner set the gas cost. Does this means that gas cost varies miner to miner ? If not, how it is determined ? Moreover, when a contract is referred in geth we ...
8
votes
3answers
6k 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.
2
votes
2answers
248 views

What's the deal with GAS in Ethereum? [duplicate]

What benefits exactly we get from using gas in the network and why do we need it?
5
votes
1answer
914 views

Disable mining/gas/ether or set really low

When building a private ethereum network, with trusted Nodes (companies, investors, etc.) who all contribute to verifying the transactions. Three related questions/options: Would it be better/...
4
votes
1answer
744 views

Setting gasPrice not working on private network

I'm running geth with the following option: --gasprice 21000 But if I execute the following command: > eth.gasPrice It gives me 20000000000.
1
vote
0answers
139 views

Most expensive DAPP (in terms of gas usage per transaction) [closed]

Which DAPP currently running or in development is likely to use the most gas per transaction?
15
votes
1answer
1k views

How does “Gas Price Oracle” work?

How does "Gas Price Oracle" work? "Gas Price Oracle" is explained here in go-ethereum wiki, but it doesn't explain how it works. Where does it get the data from? How does it do its calculations?
20
votes
1answer
61k views

Gas price in ETH unit

I am wondering if there's a website that provides the price of the standard gas limit (21000 Gas, transaction cost for sending ETH) in ETH unit. I checked Ether.Fund site, but it provides the gas ...
4
votes
1answer
522 views

How do you provide a GasPrice and GasLimit to overcome the “low tx nonce or out of funds” log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
2
votes
0answers
115 views

How to disable gas in PRIVATE-NET [duplicate]

I am running my private net on localhost and keep getting errors like "Gas price too low for acceptance". Is it possible to disable "gas" entirely for testing purposes? TIA
16
votes
2answers
3k views

Where does the consumed ether/gas go?

I'm a bit new to ethereum and I'm finding it a bit difficult to understand how gas and Ether relate. So every call we do to a smart contract costs gas. Where does the gas that the user pay goes to? ...
2
votes
2answers
110 views

Does more tps = lower gas price?

Lets say that Ethereum is running at 95-100% of max tps, wich means gas price will rise. And then lets say we update the blockhain and dobble the tps. Would that lead to a halving of gas price?
7
votes
4answers
3k 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 ...
5
votes
1answer
323 views

Is the transaction fee reduced from the transaction value?

Address A holds 1 ether and address B holds 0 ethers. Lets create a transaction to transfer all balance from A to B. This transaction will consume roughly gas_price * gas_used = 20 gwei * 21000 = 0....
2
votes
1answer
2k views

Getting “exceeds block gas limit” regardless of gas value [duplicate]

My code is below, setting gas to 21000, but I've tried values up to 100000 and nothing works: eth.sendTransaction({from:eth.coinbase, to:ACCOUNT, value: web3.toWei(30, "ether"), gas:21000}) I've ...
5
votes
2answers
1k views

With the rising Ether price to $9, doesn't this mean gas costs more?

With the increase in the ether price, doesn't gas cost more, hence higher price to execute a contract? What is the current gas price today to execute a typical contract or send a transaction?
6
votes
1answer
687 views

Should I use the default gas price?

I see that there is a default gas price, but does everyone use it? Do people get away with paying much less for gas? Are there any websites that track how long transactions take at different gas ...
10
votes
1answer
1k views

Geth Gas price too low for acceptance

Why is geth not letting me post a transaction with a low gasPrice? > ./geth console > eth.sendTransaction({ "from": "...", "to": "...", "gas": "30000", "gasPrice": "10", "value": "0.1" }) Gas ...
18
votes
2answers
21k views

Can I set the gas price to whatever I want?

The default gas price is 0.02e12 Wei. But while creating transactions on the command line or Geth's Javascript console you can define your own gasPrice: web3.eth.sendTransaction({/* ... */, gasPrice: ...
11
votes
2answers
513 views

Can I send gas to another user?

Gas is purchased using Ether, does that mean I can send gas as a separate coin?
16
votes
1answer
6k views

How much does it cost to use a contract?

Still new to ethereum and would like to know the price for a contract.
20
votes
1answer
3k views

What were the key assumptions and analyses that went into setting Ethereum's gas price?

Frontier was launched with a default gas price of 0.05e12 wei. In Homestead, the default was reduced to 0.02e12 wei. If this gas price is too low and operations on Ethereum are too cheap, for ...