Questions tagged [fees]

Questions related to the transactions fees and gas costs in Ethereum

Filter by
Sorted by
Tagged with
47
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?
26
votes
5answers
28k 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 ...
19
votes
3answers
25k 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: ...
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: ...
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?
13
votes
2answers
830 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 ...
2
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 ...
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, ...
11
votes
3answers
35k 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")....
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 (...
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 ...
22
votes
2answers
63k 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 ...
13
votes
6answers
13k 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 ...
7
votes
1answer
557 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, ...
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. ...
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:
2
votes
1answer
109 views

Why is gas needed when fees can be derived intrinsically?

If fees are derived based on the equation (startGas - remainingGas) * gasPrice, why is gas even needed to be specified for a transaction? The intrinsic gas can be derived from the contract itself, ...
7
votes
2answers
4k 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 ...
0
votes
1answer
251 views

Ethereum Transaction for ERC20

If I want to airdrop the token to 10,000 addresses can we do it all under 1 transaction rather than 10,000 separate transactions all incurring separate fees. Thanks Amit M
13
votes
4answers
33k 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 ...
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?
4
votes
1answer
16k 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 ...
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 ?
2
votes
2answers
1k views

Why don't private blockchain networks that do not charge for transactions charge a fee when processing ethereum/ proprietary token on the network?

I ask this questions is there seem to be 2 flavors of blockchain: 1. Public think bitcoin and ethereum. 2. Private hyperledger, SAP Leonaro, etc. The public network charges for transactions which make ...
1
vote
1answer
229 views

How are 0 gas price transactions getting mined?

Here's a transaction with a gas price of 0: https://etherscan.io/tx/0xbdda3e1d4d879590b5d21ce777a91573fb5bbb40fa0f6cbcc8420a6d3d208668 How is it getting mined? Is the miner mining it for free?
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 ...
2
votes
1answer
158 views

How do I implement ERC20 billing?

I want to accept payments on my website. The idea is that for every user I create his own private key from a temporary address and when he sends some tokens to this address - I transfer money from ...
1
vote
1answer
36 views

Pros & Cons of Using the “wei” Method to Track User Deposits in Ethereum

With Ethereum it's notoriously difficult to accept deposits from many users due high operational costs for making new ETH addresses. On the other hand, if all users of a service send ETH to one ...
1
vote
1answer
118 views

How to calculate exchange fee in ETH in transaction?

Let's say I have the following decoded transaction input data: [ "0x0000000000000000000000000000000000000000", "690000000000000000", "0xac709fcb44a43c35f0da4e3163b117a17f3770f5", "...
1
vote
1answer
817 views

Why failed transactions have higher fees?

Liquidating some tokens on EtherDelta. Some of the transactions are not successful - they have higher fees than transactions that are successful. What is the reason for that?
0
votes
1answer
621 views

Is 21,000 Gas Limit Fixed Only for Ethereum?

I was reading a comment on another post on Ethereum SE and found the following statement: 21,000 is for sending Ether, not anything else. The user suggested to "just set it to a large enough ...