Questions tagged [gas-price]

Questions dealing with the gas price of a transaction.

Filter by
Sorted by
Tagged with
12
votes
2answers
14k views

how to estimate gas cost?

I have a function that iterate through an array, which could cost a lot of gas. But I still want to test out the estimate gas cost, then decide if I should maintain the design or not. function ...
0
votes
1answer
63 views

How to optimize the upload of data onto the blockchain so that the miners will choose the transactions while paying relatively lower gas price?

If I have 10 transactions that would fill 10 blocks worth of gas, would the transactions be more likely to be included in a block if I send 20 transactions that fill 1/2 of each block? What about 40 ...
3
votes
2answers
161 views

Can i compel miners to privilege my transaction by setting a high gas limit?

I'm trying to send ether to a contract that has a fixed gas price, so I want to know if I can incentive miners to accept my transaction before someone else's by setting a high gas limit. Do miners ...
4
votes
2answers
2k views

How much does it cost to upload a smart contract?

I'm using a local Ethereum testnet and it seems to me that the price of uploading a smart contract is a bit too high. This is the code for the smart contract: contract Transfer { address owner; ...
3
votes
1answer
189 views

Determine network congestion, min required gas/gas price based on current conditions

Say I have an application that is making some low priority transactions. I'd like to keep them as low priority as possible without having them take 20+ minutes or poof and disappear. What's the best ...
3
votes
1answer
241 views

How can I set the gas price of a transaction initiated by a contract?

I am writing a contract that will interact with another contract: contract A will call a function defined by contract B. Is it possible to set the gas price that contract A is willing to pay when ...
0
votes
1answer
797 views

Cheapest Transaction Fee When Sending Tokens?

I have created a Smart Contract to return tokens to any address that sends me Ether, but I have noticed that the transaction fees range from 20 cents to a couple of dollars when tokens are sent from ...
3
votes
0answers
242 views

Why are there pending TXs with high gas prices?

Rinkeby has pending transactions, some of which have gas prices of 100+ gwei and have been pending for over half an hour. Why is that? Are sending too little gas?
0
votes
2answers
221 views

Send funds to owner after each buy or after several?

I copied and modified smart contracts from TenX and EOS. TenX sends funds to their wallet after every purchase from a buyer: function createTokens(address recipient) public isUnderHardCap saleIsOn ...
0
votes
1answer
2k views

What is the Default gasprice?

I want to play with a custom chain that has a gas price that's different from the ETH mainnet. By "gas price" I mean how much gas is required to deploy a dapp. But I don't see anywhere in the chain ...
1
vote
0answers
138 views

What are the alternative methods of specifying gas price for contract execution?

This is possibly a rhetoric question, but I didn't find an answer to it. There are excellent answers to similar questions from @eth How much does it cost to use a contract? and When calling a smart ...
1
vote
1answer
398 views

Is it possible to change the gas price during contract method execution?

Is there any way in Solidity to change the gas price during contract method execution? For example using Assembly?
3
votes
2answers
535 views

Would a minimal gas price tx ever be mined?

I want to mine and charge a minimal gas price (like the minimum required to prevent infinite loops and such), to enable many smaller transactions to be confirmed super cheaply and to lower the cost of ...
0
votes
1answer
93 views

Why is there a drop in the amount of Ether I transferred

I tried to transfer 1.37299 Ether from one account to another. In the process, 0.0004851 Ether was consumed as gas. Even subtracting this gas price, ideally, 1.3725049 Ether should be transferred to ...
2
votes
4answers
1k views

Is there a gas price limit?

Every transaction on the Ethereum blockchain must consume less gas than the block gas limit, which can fluctuate depending on the weighted average sentiment of miners. To help incentivize inclusion of ...
2
votes
0answers
135 views

Very big fee for token on testnet

I'm new here and try to make my own token. I kinda made it actually, but fee for it is very big(cheapest one is 0.65 eth). Here's my code: pragma solidity ^0.4.13; library SafeMath { function mul(...
2
votes
1answer
100 views

Is this type of Dapp reasonable to be built on Ethereum?

I'm currently doing some tests with Solidity programming language and EVM. I want to create application where people could make a personal accounts and make some business logic then. But I'm afraid of ...
2
votes
1answer
5k views

Transfer Ether from contract to user addresses

I have code to transfer Ether to an address, as follows: addr.transfer(amount); Unfortunately, when I execute this statement for two transfers, the money never arrives in the addr addresses. I do ...
4
votes
2answers
2k views

What gives ether it's intrinsic value? [duplicate]

Trying to understand how ethereum and blockchain work. I keep hearing that miners are needed to do the computations to unlock a block (don't know if that's the correct term). My question is this: ...
1
vote
0answers
159 views

How do I specify a lower gas price in the Ethereum Wallet when creating a wallet contract?

I'm trying out the Ethereum Wallet Dapp (which may or may not also be called Mist, I'm a little confused about the naming. But the About screen says "Ethereum Wallet 0.8.10"). This wallet app seems ...
1
vote
2answers
238 views

Why is my account balance after executing the contract so different?

I'm writing a test for a Lottery contract: var Lottery = artifacts.require("./Lottery.sol"); contract('Lottery', function (accounts) { var ACC_FABIAN = accounts[0]; var ACC_RENE = accounts[1]...
0
votes
0answers
49 views

Is there a way to prevent transactions becoming too expensive [duplicate]

As the price of ethereum has goes up, the cost of making transactions increases as well. What methods are there to prevent making transactions from becoming unaffordable?
1
vote
1answer
129 views

Is next formula to calculate TX cost in euros correct?

I want to create a transaction in the main-net. Each transaction modifies 4 * 32 bytes of storage. It also creates a event with 3 indexes and 150 bytes of real log. Note: I arbitrarily take 300 Euros/...
5
votes
1answer
7k views

Gas cost of different computations [duplicate]

Is there somewhere a list showing the different cost of different calculations?For example: Perform transaction: 21'000 gas calculate a hash: 30 gas addition of two numbers: 3 gas cycle in a loop: 1 ...
1
vote
0answers
80 views

Parity pending transaction [duplicate]

I'm one of the many that tries to join the Status Network ICO using Parity. When I check "txqueue viewer" on top of the queue I see my transaction. As you can see below, it's there for a long time ...
0
votes
1answer
3k views

Gas cost / ETH fee in order to send Golem?

I want to send Golem from myetherwallet to a friends wallet. How much does the Ethereum network charge in gas / ETH fee for sending a token?
1
vote
1answer
451 views

GAS is the fuel of Ethereum network?

I want to know something about GAS...can you please explain... What is the relationship between Gas and Wei / Ether? Can you please give an example of how much the execution of a contract will cost? ...
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
377 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
100 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
57 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
173 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
573 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
394 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?
3
votes
2answers
135 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
890 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
540 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
2k 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
51 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
565 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
257 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. ...