Linked Questions

0
votes
2answers
655 views

How much gas does it cost to create and/or execute a smart contract? [duplicate]

Curious for any other good resources for this Q!
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
29
votes
3answers
13k views

What are the limitations to estimateGas and when would its estimate be considerably wrong?

web3.eth.estimateGas and JSON-RPC estimateGas can be used to see how much gas should be specified for a transaction, before crafting the transaction. Since it is an estimate, are there any ...
42
votes
3answers
10k views

How were gas costs chosen for the Ethereum Virtual Machine instructions?

Different instructions of the EVM have different associated gas costs -- you can look at the list of the gas-prices in the appendix G of the yellow paper. While the rough magnitudes of those numbers ...
22
votes
2answers
16k views

How do I know how much gas to use when calling a contract?

When I am calling (sending a transaction to) a contract how do I determine how much gas to use? Is there a way to calculate this upfront & what happens if I send too much / too few gas?
21
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 ...
6
votes
2answers
3k views

Who pays gas for smart contracts?

I'm currently writing my first smart contract and I'm trying to figure out how to inject gas into the contract, of course, if it's possible. I'm not sure If I got it correctly. With every transaction ...
8
votes
2answers
4k views

How to estimate the cost to call a Smart Contract method?

After succesfully deployed this Smart Contract on Ethereum testnet https://testnet.etherscan.io/address/0x27c042342C9ba937214117e11A4970A6145034cB is it possible to calculate how much gas is going ...
2
votes
2answers
3k views

If the price of ether coin goes up, does it mean less likely people are going to build application on the ethereum network?

If I am not mistaking, application developers need to pay using ether coins to have their application hosted on the ethereum network. So if the price of ether keeps going up like it is now, doesn't it ...
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 ...
4
votes
1answer
2k views

How can I know how much a contract deployment will cost?

I'm trying to deploy a contract into ethereum, but I keep getting "out of gas" error. How can I know in advance how much ethers I need to deploy a contract?
5
votes
2answers
930 views

Contract creation gas cost depends on code in library function?

I have a contract fooContract which is using a fooLib library, calling fooLib.foo(LibStruct storage param) The transaction cost to create fooContract seems to depend on the code in the fooLib.foo() ...
1
vote
1answer
848 views

Can a transaction's gas cost change?

I encountered a strange issue on Ropsten Testnet. I deployed a payable contract successfully and tried to send ethers to it. I didn't know how much gas it required, so I gradually increased gasLimit. ...
2
votes
1answer
91 views

How do I figure out how much USD it will cost to deploy or execute methods on a contract?

Is there a simple tool for this or do I have to calculate it myself?
1
vote
0answers
145 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 ...

15 30 50 per page