visualization analysis blockchains are
play

Visualization + Analysis Blockchains Are Networks Time-series - PowerPoint PPT Presentation

Visualization + Analysis Blockchains Are Networks Time-series Visualization Quickly spot properties Quickly spot inconsistencies Ask better questions This Lecture Analyze some properties of cryptocurrencies Tools


  1. Visualization + Analysis

  2. Blockchains Are • Networks • Time-series

  3. Visualization • Quickly spot properties • Quickly spot inconsistencies • Ask better questions

  4. This Lecture • Analyze some properties of cryptocurrencies • Tools • Data Sources • Insights • Sample code

  5. Distributions

  6. Distributions • Distributions of: • Transaction Fees • Wallet net worths • Bitcoin Script Usage • Whales

  7. Bitcoin Transaction Fees • BTC • Satoshi per byte • 100mn Satoshis = 1 BTC

  8. Ethereum Transaction Fees • ETH • Gas • 21000 Gas = Base fee • Just transferring funds • Put down Gas Price • Pay Gas Price * Gas Used • Put down Gas limit

  9. Bitcoin Transaction Fees Fee Txns 0 8380 1 9407071 2 2841101 … ….

  10. Why Zeros? • Possibly: • Miners’ own transactions • Incredible generosity • Off-chain payment

  11. Most Common Fee Fee Txns 1 9407071 3 7448408 4 2863087 … ….

  12. Distribution • Raw bar chart bad for viz (large variance). • Solution: • log/log plot

  13. Log-Log Plot

  14. Log-Log Plot • Seems like a truncated power law

  15. Power Laws • 80/20 Rule • Internet Networks • Traffic Arrival Times • Zipf • Twitter followers

  16. Ethereum Gas Prices

  17. log-normal?

  18. Ethereum Gas Prices Fee Txns 0 121023 1 117 2 7 … ….

  19. Most Common Fee Fee Txns 20000000000 11107198 1000000000 7354494 10000000000 7339890 … ….

  20. Zero Gas Prices? • https://www.reddit.com/r/ethereum/comments/7lx1do/ a_christmas_mystery_sweepers_and_zero_gas_price/ • https://medium.com/chainsecurity/zero-gas-price-transactions- what-they-do-who-creates-them-and-why-they-might- impact-scalability-aeb6487b8bb0

  21. Time-Series

  22. Correlate With Events • Correlation to fiat? • Correlation to other coins?

  23. Other Coins

  24. YTD

  25. Spearman’s Rank Correlation Col1 Col2

  26. Spearman’s Rank Correlation Col1 Col2 Rank=2 Rank=3 Rank=10 Rank=5 Rank=5 Rank=2 Rank=3 Rank=1

  27. Spearman’s Rank Correlation • Row-wise difference squared : d^2 • Sum up these row-wise differences •

  28. Spearman’s Rank Correlation • +1/-1 : Strong positive / Strong negative • 0 : No correlation

  29. Correlation Charts - Coins

  30. Correlation Charts - BTC v. Fiat

  31. So? • Looks like there is almost no correlation to fiat • Coins almost all move in lock-step • Implications?

  32. BTC Volume Events

  33. Network

  34. Visualizing Networks • Slightly complex with bitcoin • The Bitcoin graph: • Nodes: wallet addresses • Edges: Spends

  35. Visualizing Networks • Best practices contribute 1 or 2 nodes each transaction • In practice this seems to be 50%

  36. Degree Distributions • Seems to be power law:

  37. Ethereum

  38. Transaction Patterns • Fork-merge: • Large amount in wallet • Split into many smaller wallets • Finally after a long trip merged into single wallet • Binary tree-like structure: • Transaction + Change • Splitting your amount into 2 • Long Chains

  39. Insights From Degree • What about degree 1: • Likely money transferred to same individual • Large outdegree: • Possibly automated transaction

  40. GeoSpatial

  41. Hard Because • Many won’t expose an IP address • Many won’t respond to API calls that identify their address • Not very trustworthy

  42. Visit At • https://blockchaincourse.onai.com/node_viz/

  43. Questions?

Recommend


More recommend