Skip to content

Instantly share code, notes, and snippets.

@amiller
Last active October 10, 2016 16:52
Show Gist options
  • Save amiller/ddf3a71505730b8a7c4661b8b5dc25b2 to your computer and use it in GitHub Desktop.
Save amiller/ddf3a71505730b8a7c4661b8b5dc25b2 to your computer and use it in GitHub Desktop.
What’s the price per kilobyte of Ethereum transaction data?
*************************************************************
As of October 2016, it's about $0.023 USD per kilobyte (2.3 cents per kilobyte)
Step 1: Gas price:
=================
= 25gigawei per gas (As of October 2016) https://etherscan.io/charts/gasprice
Ether unit conversion:
25 Gwei = 0.000000025 Ether http://ether.fund/tool/converter
Step 2: Price of ether in $
===========================
= $11.87 (As of October 10, 2016)
So, price of gas in $
= $2.97e-7 per gas
Step 3: Gas costs per tx and byte of data
=======================================
See yellow paper http://gavwood.com/Paper.pdf
21000 gas “base” for a transaction
68 per (nonzero) byte of transaction data
20000 gas per “store” (256 bytes), i.e. 78 per byte
So, an approximation is
= 75 gas per byte of data stored
Step 4: Cost per kilobyte:
$2.97e-7 * 75 * 1024
= 2.3 cents per kilobyte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment