Non-FictionNon-Obvious CareerOn-Chain DataDune Analytics

On-Chain Data Analyst eBook

Use Dune Analytics to build dashboards tracking De

by Arrington Zandra

  • English
  • 137 pages
  • 2026
  • SamEnrico

Use Dune Analytics to build dashboards tracking DeFi TVL and whale movements.

Formats

Free sample

Chapter 1: The Great Unlocking...--–- On a Tuesday morning in November 2022, a pseudonymous analyst known only as "Fat Man Terra" posted a single chart to a Telegram group with 47 members. The chart showed stablecoin outflows from a wallet labeled "Alameda Research – FTX Deposit." The outflows totaled 1.2billionovertheprevious72hours.Atthetime,FTXwasthethird−largestcryptocurrencyexchangeintheworld.Itsfounder,Sam Bankman−Fried,hadjustcompletedamediatourwherehecalledhisexchange"thesafest"anddismissedconcernsabouthistradingfirm Alameda Researchas"rumorsspreadbycompetitors."Traditionalfinancialnewsoutletsranheadlinespraising FTX′s"prudentriskmanagement."Meanwhile,on−chaindatawasscreamingtheopposite.Thesmall Telegramgroupthatsawthatchartexitedtheirpositionswithinhours.By Fridayofthatsameweek,FTXwasinsolvent,Bankman−Friedwasunderfederalinvestigation,andover1.2 billion over the previous 72 hours. At the time, FTX was the third-largest cryptocurrency exchange in the world. Its founder, Sam Bankman-Fried, had just completed a media tour where he called his exchange "the safest" and dismissed concerns about his trading firm Alameda Research as "rumors spread by competitors." Traditional financial news outlets ran headlines praising FTX's "prudent risk management." Meanwhile, on-chain data was screaming the opposite. The small Telegram group that saw that chart exited their positions within hours.

By Friday of that same week, FTX was insolvent, Bankman-Fried was under federal investigation, and over 1.2billionovertheprevious72hours.Atthetime,FTXwasthethird−largestcryptocurrencyexchangeintheworld.Itsfounder,Sam Bankman−Fried,hadjustcompletedamediatourwherehecalledhisexchange"thesafest"anddismissedconcernsabouthistradingfirm Alameda Researchas"rumorsspreadbycompetitors."Traditionalfinancialnewsoutletsranheadlinespraising FTX′s"prudentriskmanagement."Meanwhile,on−chaindatawasscreamingtheopposite.Thesmall Telegramgroupthatsawthatchartexitedtheirpositionswithinhours.By Fridayofthatsameweek,FTXwasinsolvent,Bankman−Friedwasunderfederalinvestigation,andover8 billion of customer funds had vanished. The 47 people in that Telegram group saved millions. Everyone else learned a brutal lesson: the blockchain does not lie, but it does require someone willing to read it.This book is for that someone.The Information Asymmetry That Changed Everything For the entire history of modern finance, the wealthy and well-connected have possessed a structural advantage: information. Insider trading, early access to earnings reports, off-the-record briefings with CEOs, and proprietary data feeds have created a two-tiered system where institutions see the future and retail investors see the past. The quarterly earnings report is a relic of an era when information traveled by mail.

The Securities and Exchange Commission's EDGAR database, for all its democratic intentions, delivers data that is already 90 days old by the time you read it. By then, the people who matter have already acted.Blockchain technology did not invent transparency, but it weaponized it.Every transaction, every swap, every bridge transfer, every liquidation, every single movement of value on a public blockchain is recorded forever in an append-only ledger that cannot be altered, hidden, or backdated. No phone calls to investor relations. No "off the record" briefings. No friendly journalists getting the scoop.

The data is there, sitting in plain sight, waiting for anyone with the curiosity to query it and the skill to interpret it. This is the Great Unlocking: the democratization of financial intelligence. For the first time in history, a retail trader sitting in a coffee shop can see exactly what a multi-billion dollar hedge fund is doing with its treasury – often minutes after the transaction settles.But there is a catch. Raw blockchain data is vast, noisy, and unintelligible to the untrained eye. The Ethereum blockchain alone processes over one million transactions per day.

Each transaction contains fields like gas_price, nonce, to_address, value, and input_data encoded in hexadecimal. Buried inside that chaos are signals that predict price movements, identify accumulation phases, detect hacks before they happen, and reveal the fingerprints of insider trading. The difference between seeing noise and seeing signal is the difference between being the exit liquidity and being the one who exits first.This chapter establishes the philosophical foundation for everything that follows. You will learn the five core metrics that professional on-chain analysts monitor daily. You will adopt the analyst's mindset – a shift from asking "what happened?" to asking "what is about to happen?" And you will dissect, in brutal detail, the FTX collapse as a case study in what on-chain data can reveal when traditional media is still publishing puff pieces.

By the end of this chapter, you will never look at a crypto exchange the same way again.The Five Pillars of On-Chain Intelligence Before you can analyze, you must measure. The universe of blockchain data contains hundreds of possible metrics, but professional analysts focus relentlessly on five core signals. These five metrics appear repeatedly throughout this book and form the foundation of every dashboard you will build. Master these, and you master the craft.Total Value Locked (TVL)Total Value Locked represents the sum of all assets deposited into a decentralized finance protocol. If a protocol is a bank, TVL is its deposit base.

However – and this is crucial – the TVL you see on De Fi dashboards like De Fi Llama is often misleading. Those numbers are typically gross TVL: the raw sum of deposits before subtracting borrows or accounting for double-counting. A sophisticated analyst calculates net TVL (deposits minus borrows) and economic TVL (net TVL minus double-counted LP positions and known bad debt). We will spend all of Chapter 4 deconstructing TVL because it is simultaneously the most useful and most manipulated metric in De Fi. For now, understand TVL as the gravitational center of a protocol: when TVL rises, liquidity flows in, slippage decreases, and the protocol becomes more useful.

When TVL falls, death spirals begin.Net Flow Net Flow measures the difference between assets entering a protocol or exchange and assets leaving it. For a centralized exchange like Binance or Coinbase, positive net flow means customers are depositing funds (potentially to buy). Negative net flow means customers are withdrawing (potentially to sell or self-custody). During the FTX collapse, net flow from the exchange turned dramatically negative 72 hours before the public announcement – a signal that those with inside knowledge were already leaving. Net flow is the closest thing on-chain analysis has to a "leading indicator."Active Addresses An active address is any wallet that initiates a transaction during a given time period.

This metric filters out the noise of dormant wallets and measures genuine economic activity. A sudden spike in active addresses on a specific protocol often precedes price volatility. A sustained decline suggests fading interest. The nuance: not all active addresses are equal. A whale moving 10millioncountsasoneactiveaddress.Athousandretailtradersmoving10 million counts as one active address.

A thousand retail traders moving 10millioncountsasoneactiveaddress.Athousandretailtradersmoving100 each count as one thousand active addresses. Both signals matter, but they tell different stories. We will build queries that distinguish between whale activity and retail activity starting in Chapter 7.Transaction Count Transaction count is the raw volume of on-chain activity. It is less informative than active addresses because a single user can generate thousands of transactions (through high-frequency trading bots, arbitrage strategies, or simply spam). However, transaction count becomes powerful when combined with gas usage.

A rising transaction count with falling gas prices suggests efficient network usage or lower demand for block space. A falling transaction count with rising gas prices suggests congestion caused by a few high-value transactions – typically whales or institutional movers.Gas Usage Gas is the computational fuel of Ethereum and similar blockchains. Gas usage measures how much computational effort transactions require. Complex operations (like a Uniswap swap involving multiple hops or an Aave liquidation) consume more gas than simple transfers. Spikes in gas usage often precede major on-chain events.

In the hours before the Euler Finance hack, gas usage on the Ethereum network spiked as the attacker deployed and…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Use Dune Analytics to build dashboards tracking DeFi TVL and whale movements.

Details

Author
Arrington Zandra
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Non-Obvious Career, On-Chain Data, Dune Analytics
Released
2026-05-30
Pages (approx.)
137
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Arrington Zandra

See all

You may also like

See all