Bitcoin Forum
June 22, 2024, 02:41:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction Fees  (Read 401 times)
Trongersoll (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 501



View Profile
April 19, 2013, 05:28:27 PM
 #1

I been doing a lot of reading, and i'm afraid that i don't totally understand how the transaction fee thing works. From what i gather, the miner of the block gets a small pitance when his block is used?

Things i don't get are:

1. Where does the miner set the amount?
2. Can the miner change the amount?
3. Do you know what the fee will be prior to making the transaction?
4. Can you choose a different block with no fee or a lower fee?
5. Does the fee come out of the amount being transferred or is it added to the amount being transferred and taken from the sender?

 Huh
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
April 19, 2013, 05:33:14 PM
 #2

You are confused. Who make the transaction set the fee! The miner then include the transactions in the block. It is not people that use the block  Wink It is the miner that put transactions in the block and get the fees. So, who decide the fee? Who make the transaction  Wink

Firestarter1
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 19, 2013, 05:35:05 PM
 #3

So, to who does transaction fee actually goes to?
andicatorx
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 19, 2013, 05:39:47 PM
 #4

It goes to the miner. See the mining section to find out more. It is to those person who contribute their cpu/gpu computation to create those transaction blocks.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4669



View Profile
April 19, 2013, 05:58:40 PM
 #5

I been doing a lot of reading, and i'm afraid that i don't totally understand how the transaction fee thing works.

That much is clear.  Lets see if we can help you understand better.  To start with, please immediately forget everything you think you know about bitcoin transaction fees. For that matter, please forget everything you think you know about mining.  At the moment your understanding is significantly incorrect.

From what i gather, the miner of the block gets a small pitance when his block is used?

The miner chooses unconfirmed transactions.  He then packages them up and calculates a special hash called a "merkle root".  He builds a block header that includes the merkle root of the chosen transactions.  If he successfully mines the block he broadcasts it, and all those chosen transactions become "confirmed".  In exchange for doing this work, the miner receives a block subsidy of newly created bitcoins (25 BTC) and the transaction fees from all the transactions that the miner selected for his block.  The people who are sending the transactions voluntarily decide for themselves if they want to include a fee with their transaction.  When the miner chooses the transactions he will include in his block, he can use any criteria he likes.  The value of the voluntary fees is a way for the transaction sender to provide a financial incentive to the miner to encourage him to pick their transaction.

1. Where does the miner set the amount?

At the moment, unless the miner has created their own mining software, I believe the selection process is built into the software.  I'm not sure of the exact process in the software, but it likely sorts transactions by value of the fee, and chooses the transactions with the highest value.

2. Can the miner change the amount?

The miner can change the threshold he is willing to accept, but it would require some computer programming skills.  I'm not yet aware of any commonly used mining software that allows you to easily configure which transactions you'll accept.  If I'm mistaken about this, hopefully someone with more knowledge about mining software will stop in and correct me.

3. Do you know what the fee will be prior to making the transaction?

Yes.  Fees are voluntary.  You can set the fee to be whatever you want it to be when you send a transaction. Some wallets enforce a minimal fee on transactions that seem spammy.  In particular there is a fee of 0.0005 BTC per kilobyte that is enforced by many wallets if the transaction is more than 10 kilobytes or any output is less than 0.01 BTC.

4. Can you choose a different block with no fee or a lower fee?

You don't choose the block, you choose the fee.  Then you wait for confirmations.  Decreasing the fee reduces the incentive for miners to include your transaction in the blocks they are creating, increasing the fee increases the incentive.  If you don't include a fee, or include a fee that is too small, you may end up waiting a very long time for a miner to get around to including your transaction in a block they create.  If you want/need a faster confirmation, you can include a larger fee when you create the transaction.

5. Does the fee come out of the amount being transferred or is it added to the amount being transferred and taken from the sender?

The fee is voluntarily added by the sender in addition the the amount being sent.
Trongersoll (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 501



View Profile
April 19, 2013, 06:04:25 PM
 #6

I been doing a lot of reading, and i'm afraid that i don't totally understand how the transaction fee thing works.

That much is clear.  Lets see if we can help you understand better.  To start with, please immediately forget everything you think you know about bitcoin transaction fees. For that matter, please forget everything you think you know about mining.  At the moment your understanding is significantly incorrect.

From what i gather, the miner of the block gets a small pitance when his block is used?

The miner chooses unconfirmed transactions.  He then packages them up and calculates a special hash called a "merkle root".  He builds a block header that includes the merkle root of the chosen transactions.  If he successfully mines the block he broadcasts it, and all those chosen transactions become "confirmed".  In exchange for doing this work, the miner receives a block subsidy of newly created bitcoins (25 BTC) and the transaction fees from all the transactions that the miner selected for his block.  The people who are sending the transactions voluntarily decide for themselves if they want to include a fee with their transaction.  When the miner chooses the transactions he will include in his block, he can use any criteria he likes.  The value of the voluntary fees is a way for the transaction sender to provide a financial incentive to the miner to encourage him to pick their transaction.

1. Where does the miner set the amount?

At the moment, unless the miner has created their own mining software, I believe the selection process is built into the software.  I'm not sure of the exact process in the software, but it likely sorts transactions by value of the fee, and chooses the transactions with the highest value.

2. Can the miner change the amount?

The miner can change the threshold he is willing to accept, but it would require some computer programming skills.  I'm not yet aware of any commonly used mining software that allows you to easily configure which transactions you'll accept.  If I'm mistaken about this, hopefully someone with more knowledge about mining software will stop in and correct me.

3. Do you know what the fee will be prior to making the transaction?

Yes.  Fees are voluntary.  You can set the fee to be whatever you want it to be when you send a transaction. Some wallets enforce a minimal fee on transactions that seem spammy.  In particular there is a fee of 0.0005 BTC per kilobyte that is enforced by many wallets if the transaction is more than 10 kilobytes or any output is less than 0.01 BTC.

4. Can you choose a different block with no fee or a lower fee?

You don't choose the block, you choose the fee.  Then you wait for confirmations.  Decreasing the fee reduces the incentive for miners to include your transaction in the blocks they are creating, increasing the fee increases the incentive.  If you don't include a fee, or include a fee that is too small, you may end up waiting a very long time for a miner to get around to including your transaction in a block they create.  If you want/need a faster confirmation, you can include a larger fee when you create the transaction.

5. Does the fee come out of the amount being transferred or is it added to the amount being transferred and taken from the sender?

The fee is voluntarily added by the sender in addition the the amount being sent.

Thank you. this makes more sense now. i guess part of the reason i didn't get it is i haven't made a wallet to see how the transactions work. thanks again.
edarta
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
April 19, 2013, 08:03:40 PM
 #7

@DannyHamilton very nice explanation!
neversummer89
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
April 19, 2013, 08:13:00 PM
 #8

@DannyHamilton very nice explanation!

Agreed
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!