Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
48
votes
2answers
27k views

Is there a limit for transaction size?

Is there a theoretical limit for transaction data size when you send a transaction to Ethereum network? Ref. Is there a (theoretical) limit for amount of data that a contract can store?
34
votes
2answers
48k views

How do Ethereum's transaction fees compare to Bitcoin?

Ethereum has faster transactions than the 10 minutes of standard bitcoin protocol. How do the transaction fees compare at the moment if you translate the price into a comparable currency like dollars ...
26
votes
5answers
30k views

Paying a transaction fee with an ERC20 token

As far as I understand, one of the ERC20 token's features is that you can pay a transaction fee with it. In other words, you can send them without having Ether. I transferred REP tokens to the ...
22
votes
2answers
64k views

Gas price in ETH unit

I am wondering if there's a website that provides the price of the standard gas limit (21000 Gas, transaction cost for sending ETH) in ETH unit. I checked Ether.Fund site, but it provides the gas ...
21
votes
5answers
39k views

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

Apparently when sending transactions from an Account instead of a Wallet, the gas spent is small (21K), and not enough to send ether to a Contract Wallet (out of gas, so to speak). When this happens, ...
20
votes
3answers
26k views

Can I set the gas price to whatever I want?

The default gas price is 0.02e12 Wei. But while creating transactions on the command line or Geth's Javascript console you can define your own gasPrice: web3.eth.sendTransaction({/* ... */, gasPrice: ...
13
votes
6answers
14k views

How to create a temporary account for testnet with funds?

I'm a newbie in using the ethereum wallet. After I completely installed and downloaded data for the testnet I create a new account but my new account has nothing (0.00 Eth). It lead to I can't do ...
13
votes
4answers
34k views

How are Ethereum transaction costs calculated?

I'm in the process of learning blockchain technology for a client of mine. I understand the concept of "gas" in computational costs. We are looking at creating a crypto-currency as an alternative ...
13
votes
2answers
838 views

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

As the web is mostly free today (I mean the old web, the one < 3), most people won't agree in beeing asked for fuel to run sites, apps, even if the gain in terms of safety and trust are so much ...
12
votes
3answers
37k 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")....
12
votes
5answers
7k views

How to transfer the whole balance of an account?

If I have an account with 5 ETH, can I send the full account balance of 5ETH to another account and have exactly 5ETH received on the second account ? I understood that it will fail because I have no ...
11
votes
2answers
2k views

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

If I send an Ethereum transaction that has not yet been confirmed by the network can I rebroadcast the same transaction with a higher fee and a new destination address?
11
votes
1answer
576 views

Efficiency of zkSNARKs as an Ethereum smart contract vs Zcash

How would the efficiency of zkSNARKs as an Ethereum smart contract compare to the same technology being used on its own blockchain (such as Zcash or Zclassic)? By efficiency I mean 3 things: ...
10
votes
1answer
3k views

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

Using web3, how can you get the Tx cost and data/payload for a given transaction? getTransaction(tx#) returns everything but those 2 values. This information seems to be available via blockchain ...
10
votes
1answer
980 views

What determines transaction costs (Remix)?

I've reviewed several related SE questions on this topic and I haven't seen an answer. In Remix, I've created two separate .sol files. The files are names file1.sol and file2.sol. The code for the two ...
9
votes
2answers
5k 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
1k views

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

When you're browsing Ethereum network using Ethereum-enabled browsers (such as Mist), do you have to constantly pay fees in order use it (a gas fee based on the usage)? For example when I go to some ...
8
votes
1answer
353 views

Implementing Fractional Reserve Bandwidth Concept in EVM on Serenity

I recently came across this piece by Bytemaster of Bitshares: "How to build a Decentralized Application without Fees". It's actually a very interesting piece that details how one might run a ...
8
votes
2answers
2k views

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

I want to get an estimation of how much it would cost to store arbitrarily many elements in a mapping of the form BYTES32 -> BYTES32. I see here that a STORAGEADD operation costs 20000 gas, which ...
8
votes
1answer
16k views

What to do if I get “Warning! Error encountered during contract execution [Out of gas]”

Hoping someone can help me,I(ve sent some ETH from my Nano S to Poloniex, and it didn't go through. Etherscan says: Warning! Error encountered during contract execution [Out of gas]. The value ...
7
votes
2answers
2k 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: ...
7
votes
1answer
55k views

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

The best quote that the Uniswap fox found for swapping 1 ETH for UNI token right now has a $50+ estimated transaction fee (max $80) inclusive of a 0.875% MetaMask fee. Even if I change the swap to a ...
7
votes
1answer
18k views

Coinbase and Kraken Transfer Costs

I just did my first transfer of ETH from Coinbase to Kraken, to see how it would work. I transferred 1 ETH, and Coinbase indicated that the transfer charge (the gas) would be .00042 ETH (as I would ...
7
votes
1answer
572 views

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

It seems like minimum tx fee is around .001$ in Ethereum (maybe a little bit less) but I was wondering about the possibility of performing zero fee transactions, mining them by myself. Obviously, ...
6
votes
1answer
734 views

Should I use the default gas price?

I see that there is a default gas price, but does everyone use it? Do people get away with paying much less for gas? Are there any websites that track how long transactions take at different gas ...
6
votes
1answer
781 views

High transaction fee when participating a token sale

I took part in a token sale yesterday and reviewing the transaction information I see this: Value: 0.2 Ether ($55.38) Gas Limit: 82311 Gas Price: 0.000000024 Ether Gas Used By Txn: 82310 Actual Tx ...
5
votes
1answer
1k views

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

This question was prompted by the Reddit post Reminder: Ethereum has been doing roughly 40-50k transactions daily for the past 8 months.
5
votes
1answer
1k views

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

In the Ethereum wallet there are the estimated gas costs. Why is it only an estimate? Is is possible to calculate the gas costs precisely upfront?
5
votes
2answers
1k views

Including transactions fees when sending out ETH from a smart contract

Let's say I have a simple Solidity wallet contract as shown below. When I want to withdraw from the contract using send the transaction fees (gas cost) are reduced from the amount the receiving party ...
5
votes
2answers
1k views

How is it possible to pay 2,100 Ether ($309,267) for a transaction fee?

Here is the transaction details that has transaction fee for 2,100 Ether ($309,267.00) only for sending 0.1 Ether. There is no fairness for users, hence accidentally adding a zero might cause them ...
5
votes
1answer
333 views

Is the transaction fee reduced from the transaction value?

Address A holds 1 ether and address B holds 0 ethers. Lets create a transaction to transfer all balance from A to B. This transaction will consume roughly gas_price * gas_used = 20 gwei * 21000 = 0....
5
votes
1answer
7k views

What is the relationship between Gwei and gas?

I know that a Gwei means 1000000000 wei, but when we send a transaction with 21000 gas, is that mean we send 21000 Gwei? please explain Gwei for me
5
votes
1answer
536 views

Is it possible to deplete all funds in an Ethereum account?

I have an Ethereum account loaded with Ethers and I need to spend all of them, leaving account final balance at exactly zero Weis. Is that possible? I know using method eth_estimateGas() and ...
5
votes
2answers
136 views

Is the concept of paid prioritization in blockchain against net neutrality?

Since there are so many discussion about net neutrality, this triggered the question, especially since usually the proponents of blockchain and cryptocurrencies are also big proponents of net ...
4
votes
1answer
17k views

Costs for sending ERC20 token

I want to move a small amount of OMG tokens to a different address. I have no ether at this address, so I guess I have to transfer some to this address in order to pay the transaction fee. If I want ...
4
votes
1answer
4k 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. ...
4
votes
2answers
2k views

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

On testnet I am analyzing the following transaction https://testnet.etherscan.io/tx/0x7b111a37998b25116b1a6962d393253bf09613dd083b420ec24ffc9a28bc74b6 having this attributes: Gas: 90000 and Gas ...
4
votes
3answers
646 views

Can a transaction have a negative fee?

I know there are some opcodes that have negative gas costs (see this). So if I send a transaction that calls one (or multiple) instance(s) of these opcodes, will the gas used be negative? i.e. will my ...
3
votes
3answers
4k 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 ...
3
votes
1answer
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 ?
3
votes
5answers
386 views

Smart Contract public chains, other than Ethereum mainnet

As a DApp developer I am concern about the costs of transaction on Ethereum mainnet. Every DApp interaction with the Smart Contract is having a cost between 1$ and 50$ depending on the data size and ...
3
votes
2answers
1k views

Unaffordable gas limit for my Ethereum based crypto-coin

The gas limit for single send transaction is about 21000 gas. Now I am creating my own Ethereum based crypto-coin, and I want to keep its conversion rate as 1 coin = 1 US$ and about 0.02 US$ as ...
3
votes
2answers
434 views

Is gas fee paid for this transaction that was dropped?

This is transaction that was supposed to fund a smart contract but because of a low gas fee that I set, it resulted in an error Gas fees were around 10-15 usd, but still it wasn't enough. I can't ...
3
votes
1answer
3k views

Which miner gets the gas fee for each transaction? [duplicate]

I'm guessing that miners are randomly selected, but I'm curious as to which miner receives the fee for gas paid for each transaction? In hindsight, the answer to this question is obvious: of course ...
3
votes
1answer
930 views

Why do we pay fees in Ethereum?

Why do we have to pay fees for transactions since miners have a reward for blocks they mine (5 per block)?
3
votes
1answer
142 views

Gas costs of the following contract

I'm calculating the gas costs of the following contract: 0x6001600190016007026005016002900460049060016021900560150160030260059007600303600960110a60005260086000f3. Disassembled versions: contract ...
3
votes
1answer
82 views

let user create and sign erc20 transactions but i pay the fees?

I try to build an app where users can send and receive ERC20 tokens. I want the transactions for my user to be feeless. So is it possible for a user to create and sign the transactions, my system ...
3
votes
2answers
4k views

How is Ethereum Wallet's transaction cost calculated?

Lately, I've seen wildly varying transaction costs when using Ethereum Wallet. How is the fee range computed? Current range:
3
votes
1answer
3k views

How much ether I should have in my wallet to send 1 ETH to an ICO

I need to send 1 ETH to an ICO. I have 1 ETH in my wallet. I am using myetherwallet.com Question . If I send 1ETH to the contract address, will it fail for insufficient fee amount ? How much do I ...
2
votes
2answers
8k views

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

Alice owns an empty Ethereum wallet. Receives 1 ETH then sends 1 ETH to Bob. Alice owns an empty Bitcoin wallet. Receives 1 BTC then sends 1 BTC to Bob. What are the transaction sizes in bytes (...