Linked Questions

2 votes
2 answers
19k views

How much is 1 gas in ether? [duplicate]

On Etherscan the daily GasUsed chart shows current usage of 10-15 bill. How do I convert this correctly to ether (ETH)?.
0 votes
1 answer
207 views

How does gas in Ethereum works? [duplicate]

Let say I have a code that print "Hello World". I deploy it to the blockchain and pay 1000 gas for it. Will my code keep running for every subsequent block till it runs out of gas? Or will it only run ...
1 vote
0 answers
206 views

What's the point in the 'gas' parameter passed to function 'signTransaction'? [duplicate]

I am using web3.js v1 in order to sign and send transactions: async function signAndSend(transaction) { let options = { to : transaction._parent._address, data: transaction....
1 vote
1 answer
67 views

If gas is refunded, is it required to call? [duplicate]

Suppose a smart contract external function uses very much gas, but refunds (with .transfer()) the used gas to the caller. Question: Can it be called with a small amount of gas despite it uses much? ...
  • 1,514
0 votes
0 answers
37 views

Etherscan Show Fail out of gas. Eth deducted. But transaction not completed [duplicate]

I have enough ETH to pay the gas fee. After I click accept the transaction fail and it show out of gas on etherscan. Now the gas have been deducted but no transaction happen. Can someone help? The gas ...
0 votes
0 answers
22 views

Pending Transaction. How long may it take? [duplicate]

I have a question about this specific transaction: 0xd0dfbefc699ba79c2ddd86b0f7176e3e6491534db0a57597ec7aab9ce3e71726 the transaction is pending for some days now. I offered 5 gwei as fee. Max Amount ...
  • 1
182 votes
2 answers
52k views

What is the difference between a transaction and a call?

What is the difference between a transaction and a call? In some interfaces, I can interact with contracts via calls or via transactions. What is the difference between the two, and can contracts also ...
  • 7,316
117 votes
2 answers
84k views

Which cryptographic hash function does Ethereum use?

Many sources refer to the use of the "SHA3" cryptographic hash function within Ethereum, but the Ethereum project began before the SHA3 standard was finalised, and there was some confusion/controversy ...
  • 21.3k
15 votes
3 answers
44k views

How to calculate transaction fee?

For calculating the transaction fee using web3js I am using it's gas price: eth.getTransaction("txhash").gasPrice multiplied by how much gas was actually used: eth.getTransactionReceipt("txhash")....
  • 577
26 votes
2 answers
21k 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?
  • 8,421
14 votes
3 answers
11k views

Is it possible to build a private (permissioned) blockchain with Ethereum?

Ethereum is a great blockchain, but for some services the transaction fee is prohibitively too expensive. Is there any project and/or guideline on making Ethereum so it works on permissioned ...
  • 3,137
8 votes
2 answers
3k views

Who gets the fee from contract call?

Basically you don't need to pay fee for contract call, but if a contract method does lots of work, you need to add gas in contract call to prevent DoS attack like this: contract.method.call({gas: ...
14 votes
3 answers
826 views

Why does Ethereum have gas?

Why does Ethereum have gas? What other approaches could Ethereum have used to work around the Halting Problem?
  • 80.8k
3 votes
3 answers
5k views

What is the point of variable transaction fees in Ethereum (and Bitcoin as well)?

After reading through the docs and through this post, I understand the concept and need for gas, but I do not understand why each transaction can have a variable fee associated with it. It seems to be ...
user avatar
8 votes
1 answer
7k views

What is the cost of using a Chainlink Oracle?

I use the market.link to check available jobs and each job has its own price in terms of link. My question is how many times this fee will be paid? For example: Let's say the API GET request costs 0....
  • 1,225
1 vote
2 answers
8k views

Calculate The Gas Fee Of A Smart Contract Function Call And Convert The Result to USD Value

How Does One Estimate The Gas Fee Of Particular Smart Contract Function Call? I Am Aware Of Using web3.eth.estimateGas How Can One Take This Estimated Gas Result and Depending on Network Connected ...
5 votes
1 answer
1k views

what is difference between "gas" "gas price" and "fee"?

Can we say that gas is the unit of transaction fee ? And gas price is the same transaction fee ? If so, why we do not use ether and wei instead of gas ?
  • 2,578
2 votes
2 answers
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 ...
  • 21
4 votes
1 answer
6k views

How to Set Gas Price in Private Blockchain?

I admit that I don't understand Gas at all. But I think it is basically the currency which dapps use to interact with each other and the blockchain. Yes? If you're creating a custom/private network,...
  • 1,984
5 votes
3 answers
1k views

Can a "forward" smart contract forward the received ether to another "forward" smart contract which forwards it to an address?

I am pretty new to solidity. I am trying to create a smart contract which deploys another smart contract and transfers ether to the newly created contract when a payment greater than 0.01 ether is ...
  • 75
8 votes
1 answer
1k views

Can a transaction get lost?

Given that I am connected to the network with at least one peer, can I be sure that a transaction I sent will be executed (either with fail or success)? Is there a possibility that it will never make ...
  • 2,530
4 votes
2 answers
792 views

why are Transactions paid in Gas and not just Ether directly [duplicate]

All the explanations I heard for the Gas usage, could imho also be dealt with in Ether directly. What is it that Gas does that couldn't be done with Ether directly?
4 votes
1 answer
3k views

Where exactly do DApps run? Who gets rewarded for running them? [duplicate]

So I am currently running a full node, as well as a GPU miner. I am curious first of all where do DApps get run? They wouldn't make sense to run on a GPU as they aren't very parallizable, so I am ...
5 votes
2 answers
535 views

Call Smart Contract every 5 Second

Is it possible the call a method of a smart contract every 5 seconds? Lets say i want to call a webservice or an other smart contract in order to get the actual value? That is not possible or? In ...
  • 521
5 votes
1 answer
1k views

What's the difference in the ways of calling a contract function?

After I get an instance of a contract, there are 3 ways to call the contract function below: 1.testInstance.testfunc({from:eth.accounts[0]}) 2.testInstance.testfunc.sendTransaction({from:eth.accounts[...
2 votes
1 answer
1k views

EVM opcodes-prices

1) Why are opcodes in Ethereum priced the way they are priced and why is the EVM so expensive? 2) Right upfront, I do not say that it is too expensive to perform a tx on Ethereum, I just say that ...
  • 434
2 votes
2 answers
2k views

ERC20 Transaction Fee - setFeeCurrency

Hi i now read everywhere that a transaction fee has to be paid in ETH. But I also found via the ethereum page the following page: https://github.com/ethereum/wiki/wiki/Standardized_Contract_APIs#...
3 votes
1 answer
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 ...
0 votes
1 answer
2k views

myetherwallet.com is taking forever [duplicate]

I sent a transaction over 6 hours ago from myetherwallet to an outside address with the site's suggested 21000 gas limit. Its up to over 1000 block confirmations but still has not completed, yet ...
0 votes
2 answers
1k views

Super Confused Regarding Gas Fees

I hope your all doing well and staying safe. I just finished my first Dapp and Im trying to deploy it to the main net but I am suffering. So my dapp interacts with a super simple contract , the total ...
1 vote
2 answers
491 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?
  • 1,514
0 votes
1 answer
1k views

Send ERC-20 tokens without eth or gas fee on Web3.js

I am developing an app using Web3.js where users send an amount of tokens to a new wallet. What I want is forward the tokens to another wallet but I am unable because the wallets where tokens are ...
  • 3
0 votes
2 answers
759 views

When Ethereum price goes up does complexity go up too?

And what is their relationship? Is it linear, exponential. For example, if ether were to double in price tomorrow, does that mean the complexity is twice as much, or... ?
  • 241
2 votes
1 answer
701 views

Solidity browser compiler crashes

It seems like every time I try to execute a contract function through the browser compiler that requires more than around 50k gas (give or take) to execute, the browser tab's memory gets to around 1GB ...
  • 195
1 vote
2 answers
391 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
1 answer
445 views

Are transactions really instant?

I am new to blockchain in general and still trying to nail down some basic concepts, this being one of them: if a new block is added to the chain approximately every 10 minutes, does that mean a ...
1 vote
2 answers
435 views

Why is a failed transaction included in the blockchain as a "failed transaction"

According to this highest upvoted answer, "but still include it in the blockchain as a "failed transaction"... What is meant by the term "gas"?
  • 11
0 votes
2 answers
396 views

GAS price structure

how to decide gas price while writing smart contract ? and how to know how much gas is going to be used while each token transaction ? and on https://ethgasstation.info/ mentioned price is ...
0 votes
2 answers
497 views

Does price of smart contract execution raise with price of ethereum

I can't determine properly whether higher price of ETH means smart contracts will also cost higher(in fiat not eth) and is it reciprocal, like if we have a SC deployed and eth price raises 10x, will ...
  • 280
0 votes
1 answer
428 views

What is the unit of measurement used in GasPrice and GasLimit?

I did a check, in ethgasstation the current safeLow = 15GWei, which is equal = 15,000,000,000 wei However, when I issue eth.getBlock("latest") what I get was: > eth.getBlock("latest") { ...
  • 846
2 votes
1 answer
409 views

Digital asset management dapp using Ethereum

I am new to ethereum and also I have tried out some examples for building smart contract using truffle and ganache. But I want to make Digital asset management dapp using ethereum. Like, if have I ...
0 votes
1 answer
512 views

The cost of eth in the testnet is equal to the eth cost in mainnet?

i´m new in Ethereum development, i´m developing a Dapp in the Ropsten testnetwork but i need to pass it to the mainnet, have the sames cost? are equivalent in the moment we pass the Dapp to the ...
  • 11
0 votes
1 answer
291 views

Is the gas-limit as seen on ethstats measured in wei?

Simple question but I can't seem to find the answer online
  • 1,541
1 vote
1 answer
235 views

How to do performance evaluation?

How to do the performance evaluation in terms of secs or minutes? what is the command to use in solidity?
  • 21
0 votes
1 answer
292 views

What is the meaning of "Gas Used" on ethgasstation.info?

It's rather confusing cos when I googled "gas used" I don't get any exact result, NOT even from ethgasstation.info and most people are talking about transaction price, gas limit, etc. So, does "gas ...
  • 49
2 votes
1 answer
116 views

Should I pre-buy gas to effect ethereum transaction?

I am new to ethereum. I have a few questions. Should I pre-buy gas to effect ethereum transactions? Or can I just set what is the gas price I am willing to pay so that at the time of transaction the ...
  • 119
1 vote
3 answers
78 views

Can blockchain technology can ever be useful if the currency conversion to fiat money is volatile? [closed]

From my limited understanding of blockchain technology in general and ethereum in particular, whatever the token, or ether that this technology uses, eventually it has to be related to fiat money. Eg: ...
  • 113
1 vote
1 answer
110 views

What would be the cost of this transaction to end user?

A simple question on gas spent on a transaction here. I'm experimenting with testnet transaction on a simple contract that stores a value, trying to figure out how much a client would pay. What would ...
0 votes
1 answer
128 views

Execution gas cost

I use web3 and truffle to get info about my testnet transactions. There are few fields about gas used per transaction, such as: gasPrice, gas, gasUsed. But how to get field 'execution cost'?
0 votes
2 answers
88 views

If Ethereum gas charges based on the individual CPU instructions

I'm trying to understand exactly how gas works. Wondering if it charges based on actual individual CPU instructions (like Assembly-level x86 instruction set architecture level of detail), or if it ...

15 30 50 per page