Transaction Fees
I can’t believe I’m still on week four! There are only two more lectures left for this week: Transaction Fees and Currency Exchange Markets. If you just want to simple gist of this lecture. “Whenever there is a transaction, there is likely a fee. So pay up!” Also, at this point, I know more about the Ethereum fees rather than bitcoin. I’ll try to comment more about the Ethereum fee structure soon.
Questions answered in this Post:
- What is a bitcoin transaction fee?
- Who gets the transaction fee as a reward?
- Why does the transaction fee exist at all?
- How is this fee calculated?
- Is there a way to send a transaction with no fee?
- Random thought experiment.
Fees, fees, fees
We started the lecture by going over what is a transaction fee as defined by bitcoin. Transaction fee is the total value of coins that go into a transaction minus the total value of coins outputted. Well, to be honest that doesn’t tell me very much. I’ve gathered from this that the total coins outputted must be less than the coins inputted else the transaction cost would be negative or zero which does not make sense. This feed is given to the miner who includes the transaction into their block.
Why do fees exist?
Basic answer is “there is no such thing as a free lunch”. Every Economics teacher (and actually random math/comp sci teachers) has quoted that phrase to me. I’m sure you have heard it as well. Where’s the lunch?
Your transaction, of course. Why should someone put it into the blockchain for free? There are costs incurred to relay your transactions. A miner’s block is slightly larger to include your transaction. As with many things in bitcoin, you have the power to choose your own fee. You can choose no fee or pay a higher amount to further incentive miners to incorporate your transaction. If you choose to pay no fee, have no fear (maybe). According to bitcoin.it, there is a “Free transaction relay policy” in place. To be a part of this, the node must be connected to Lightfoot Hosting’s node, which relays indiscriminately. The site linked contains the exact instruction though.
Side note: I tried looking up Lightfoot Hosting. There is a place Lightfoot, Virginia as well as there is a host service. That is all I can comment about for now.
Breakdown of costs to relay transaction
- peer to peer network
- miners to record transaction
- fee to just run a node
I’m sure the numbers listed in the video are outdated but I”ll throw them up anyway as well as get an updated list.
Current consensus feeds (2015)
No fee if
- transaction has less than 1000 bytes
- all outputs are .1 BTC or larger
- large enough priority
Priority defined to be (sum of input age * input value) / (transaction size) or basically the longer a transaction is unspent the more it ages and increases the priority.
Otherwise the default fee is .0001 BTC per 1000 bytes. Just for from stats, most transactions are approximately 400 bytes: 148 bytes per input, 34 bytes for each output and ten bytes for other information.
Now fast forward to April 2017:
I have not seen information contradicting the free transaction so I’ll say for now they are still in place.
The cheapest fee is 220 Satoshis/byte so an average fee with a transaction size of 226 bytes is 50,000 Satoshis. Remember a Satoshi is 1.e- BTC. This information I got from bitcoinfees.
Per reddit , they post the price at $.15 and remember bitcoin is around $1000. Yes it’s higher than that today almost $1300.
There is a bitcoinfees website that seems to be up to date as well as one at satoshi.info.
Again, not all of this is set in stone. The lecture makes this sound like guidelines. It is up to the miners to follow or not follow this.
Random Though Experiment
One thought experiment I had was what happens when the reward to mine a block goes to zero. Will the transaction cost have to some minimum amount to ensure that the transaction can still be persisted into the blockchain? My conclusion is that this time point in the future is so far in the future that perhaps new technology will be in place. Things like Raiden lightning may impact this if they become an intermediary layer for the actual blockchain. Another thought was if the bitcoin reward is decreasing logarithmic then perhaps the transaction fee would rise and stabilize to some transaction fee. There will definitely be a time at which the transaction fee will be greater than the reward.