Hot answers tagged

73 votes
Accepted

Is there a limit for transaction size?

Wow this is such an interesting question! TL;DR: the transaction size limit, at the time of writing, is about 780kB (about 3 million gas). But read on. There is no direct or fixed limit neither for ...
user avatar
  • 31.4k
38 votes

How do Ethereum's transaction fees compare to Bitcoin?

Every computation on the Ethereum network cost gas, so do value transfers like on the bitcoin blockchain. Every computational step, or OPCODE requires a specific amount of gas (which is hardcoded). ...
user avatar
29 votes

Gas price in ETH unit

There is no fixed gas price that transactions must have. You can specify the gas price, and if you set a gas price within certain bounds, the transaction will be accepted by miners using their ...
user avatar
  • 78.3k
23 votes

How to calculate transaction fee?

What is Gas? If you are unclear on what gas is, I recommend reading the answers to the StackOverflow question "what is gas?" before going any further. Calculating the Transaction Fee The total cost ...
user avatar
  • 855
22 votes
Accepted

Paying a transaction fee with an ERC20 token

It is not really true at the moment that you can pay fees in anything except ETH, although there is some discussion about changing this. The way things normally work, you have to pay the fee in ETH. ...
user avatar
  • 16.3k
18 votes
Accepted

Can I set the gas price to whatever I want?

Can I set the gas price to what ever I want? Yes, you can. But miners have a default strategy for determining gas price to charge and if the amount you're willing to pay is below that, your ...
user avatar
  • 5,828
17 votes

Is there a limit for transaction size?

As of 12/08/2017, the gas limit as detailed on EthStats.net is 6,700,314. The gas limit was 'stuck' at 4.7 million. It was recommended that miners change their settings such that the gas limit could ...
user avatar
15 votes
Accepted

How to know if a transaction went through or not? (out of gas)

Using etherscan blockchain explorer In etherscan, look for the TxReceipt Status which will have Fail in red, or Success in green. Example of a failure: https://ropsten.etherscan.io/tx/...
user avatar
  • 78.3k
14 votes
Accepted

How to transfer the whole balance of an account?

No. You cannot send the entire balance because the fees are deducted from your account's balance, not from the value being sent. To sweep an account you need to send balance-gas*price ETH as the ...
user avatar
13 votes

How do Ethereum's transaction fees compare to Bitcoin?

In short, in Ethereum the fees are paid in gas and calculated based on contract code execution complexity, in bitcoin the're based solely on transaction size. See the these Ethereum gas fees tables ( ...
user avatar
  • 2,331
13 votes
Accepted

Who gets the fee from contract call?

"Call" is an overloaded term because it is one form of invoking a contract (see What is the difference between a transaction and a call?) and it depends where the invocation is performed, in relation ...
user avatar
  • 78.3k
12 votes
Accepted

Using web3, how can you get the tx cost and data/payload for a given transaction?

web3.eth.getTransaction has an input property, which is the /payload for a given transaction. The cost of a transaction is gasUsed multiplied by gasPrice. web3.eth.getTransactionReceipt has the ...
user avatar
  • 78.3k
12 votes
Accepted

Why is it so expensive to trade on Uniswap with MetaMask? ($50 fee)

The answer is that uniswap is a set of Smart Contract running on the Ethereum platform and thus requires gas in order to execute any functions. Meaning that when you swap token A for token B or token ...
user avatar
11 votes
Accepted

Implementing Fractional Reserve Bandwidth Concept in EVM on Serenity

Highlighting: Every time a user signs a transaction, that transaction is factored into their own individual moving average. Any time a user’s moving average exceeds the current network limit their ...
user avatar
11 votes
Accepted

Does Ethereum have a replace by fee option similar to Bitcoin?

With Geth, you can rebroadcast with a higher fee (gas price), but you cannot change the destination address. eth.resend(tx, optional gas price, optional gas limit) Example: eth.sendTransaction({...
user avatar
  • 78.3k
11 votes
Accepted

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

in a nutshell : gas is the cost unit gas price is a single gas unit's price and Fee= gas*gas price why using gas instead wei? because we need a fixed value (unit) for expressing the ...
user avatar
  • 17.5k
10 votes
Accepted

Who pays gas for smart contracts?

In brief, I deploy the contract do I need to provide gas to it? Can I somehow force clients to do that? By the way, this.balance of contract is used as gas storage? When deploying what you have ...
user avatar
10 votes

What is the size (bytes) of a simple Ethereum transaction versus a Bitcoin transaction?

This post contains several questions. Let's address them one by one. Before answering the questions, there is an error in the post's assumption: it doesn't consider the transaction fees. If Alice has ...
user avatar
  • 2,207
9 votes
Accepted

How many transactions are executed on the Ethereum network per day, and what are the daily transaction fees?

I wrote the following script to calculate the results: #!/bin/sh # ------------------------------------------------------------------------------ # Find Daily Transactions On The Ethereum Blockchain ...
user avatar
8 votes
Accepted

How to create a temporary account for testnet with funds?

Creating An Account In Ethereum Wallet Start up Ethereum Wallet. Make sure that you are on testnet by selecting the menu Develop -> Network -> Testnet(Morden). On the main page, click on Add ...
user avatar
8 votes

Paying a transaction fee with an ERC20 token

Everytime you make a transaction on ethereum you need to pay a fee to the miner of the block that will calculate the result of your smart contract. While this might change in the future, for the ...
user avatar
  • 281
8 votes

Coinbase and Kraken Transfer Costs

I see what happened. 1ETH was transferred: from 0x2bF0011e4da5a841CE9459c0995Bb2646c4f1D21 (coinbase) to 0xd08436533f63b1342fB89198F963acD8589657AE (intermediary address) with a gas cost of (21000 * ...
user avatar
  • 1,257
8 votes
Accepted

What determines transaction costs (Remix)?

I can reproduce this with compiler version 0.4.12+commit.194ff033.Emscripten.clang (but, in my case, the other way round - file1.sol has a deployment cost of 68990, file2.sol has a deployment cost of ...
user avatar
  • 8,652
7 votes
Accepted

Do you have to pay when browsing websites with Ethereum-enabled browsers?

Imagine a social network Dapp. You've got a lot of friends on it. You won't have to pay anything to read each of your friends messages as reading don't need to propagate any transaction to the ...
user avatar
7 votes

Is it possible to calculate the gas costs of a transaction exactly upfront?

The short answer is: it depends, for some transactions state changes might change the pre calculated gas costs. It is possible to calculate the gas costs of every transaction given the current state. ...
user avatar
  • 7,226
7 votes
Accepted

Should I use the default gas price?

The default gas price is 50 shannon on frontier, 20 on Homestead. (remember to upgrade) Vitalik recently ran a test to see how long it took for transactions with different gas prices to be included, ...
user avatar
  • 1,726
7 votes
Accepted

What is the way to make Ethereum available to users for free?

There could be several possible ways: For Serenity version, there are plans to allow contracts themselves to pay for transactions, if, let's say, the owners of the contract monetise it indirectly. ...
user avatar
7 votes

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

There are two main reasons: to prioritize one transactions over others and to adjust to the price. In Bitcoin, there is a limit on how many transactions you can put inside a block (the limit is on ...
user avatar
  • 1,239
6 votes

How are Ethereum transaction costs calculated?

The calculation is gas*gascost, so a simple transaction will cost 21,000 gas * 20 GWei/gas = .00042 ETH
user avatar
  • 34.2k

Only top scored, non community-wiki answers of a minimum length are eligible