Skip to main content
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 ...
eth's user avatar
  • 86k
26 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 ...
Webeng's user avatar
  • 895
23 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. ...
Edmund Edgar's user avatar
  • 16.9k
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 ...
Thomas Clowes's user avatar
15 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 ...
Péter Szilágyi's user avatar
15 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 ...
Linmao Song's user avatar
  • 2,357
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 ...
eth's user avatar
  • 86k
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 ...
People Call Me Adam's 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({...
eth's user avatar
  • 86k
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 ...
Badr Bellaj's user avatar
  • 18.8k
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 ...
Achala Dissanayake's user avatar
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 ...
BokkyPooBah's user avatar
  • 40.3k
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 ...
BokkyPooBah's user avatar
  • 40.3k
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 ...
Poliakoff's 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 * ...
Adam Dossa's user avatar
  • 1,297
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 ...
benjaminion's user avatar
  • 9,297
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 ...
Nicolas Massart's 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 ...
AdrianClv's user avatar
  • 1,269
7 votes

How does EIP-1559 make Ethereum fees better?

EIP-1559 introduces a number of things and there's many explanations, and here's one approach at explaining. EIP-1559 allows simpler UX for fees and improves the consistency of transactions being ...
eth's user avatar
  • 86k
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
Tjaden Hess's user avatar
  • 37.1k
6 votes

What would be the actual gas cost of a mapping and are there any size limitations?

The total storage is made of 32-bytes slots addressed with 256 bits. This gives us 2^256 * 32 bytes to use. When you add an item to a mapping, it is sent to a random location in the storage calculated ...
Xavier Leprêtre B9lab's user avatar
6 votes
Accepted

Gas and "Gas Used By Transaction" and how to get both values through json-rpc

The gas value is sent by the external account that created the transaction. With the transaction object { from: account: gas: 90000, ... }. When you call eth.getTransaction("0x..") you get the same ...
Xavier Leprêtre B9lab's user avatar
6 votes
Accepted

What is the relationship between Gwei and gas?

Gas is needed by miners to execute a transaction. The more complicated a transaction is, the more gas they will need. When you send a transaction, you (or your wallet program) has to configure two ...
Jesbus's user avatar
  • 10.5k
6 votes
Accepted

Costs for sending ERC20 token

To send ERC20 tokens, you must sign a transaction. A transaction will use a certain amount of gas. Gas is sold at a per unit price. The formula is TransactionCost = gasUsed * gasPrice; The gasUsed ...
Victory's user avatar
  • 1,231
5 votes
Accepted

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

A miner does not mine one transaction in isolation. A miner mines a block, which has transactions. If you have a miner, it is competing with the other miners in mining the next block. If your miner is ...
Xavier Leprêtre B9lab's user avatar
5 votes

Can I set the gas price to whatever I want?

To see what gas prices are currently being accepted by miners, and how long it will take your transaction to confirm with a given gas price, see EthGasStation.info. Here is a snapshot of the ...
pyggie's user avatar
  • 558
5 votes

How to transfer the whole balance of an account?

Basic answer is no ! Anytime you want to perform a transaction, you'll have to pay a fee for the computation involved in validating and mining your tx. If you do not have enough gas, you cannot send ...
yoregis's user avatar
  • 1,242
5 votes

Who gets the fee from contract call?

In the case that the transaction executes successfully, the actual fee goes to the miner that solves the block. To avoid redundancy, I'll just point to some details here: How do Ethereum's ...
Rob Hitchens's user avatar
  • 55.4k
5 votes

How to calculate storage costs?

I suppose it depends how you store it. A single SSTORE opcode can store 32 bytes, which is enough to store "hello world." An SSTORE operation costs 20,000 gas if it's storing a non-zero value where a ...
user19510's user avatar
  • 28.1k

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