Back to Analytics

On-Chain Analysis

Every transaction on a public blockchain is permanently recorded. Learn how to extract valuable insights from this data to understand market behavior and make informed decisions.

What You'll Learn

Wallet Tracking

Wallet tracking allows you to monitor any blockchain address for activity. This is fundamental to on-chain analysis - understanding who holds what and how they move their assets.

Key Metrics to Track

BalanceReal-time

Current holdings in ETH and tokens

Transaction CountHistorical

Total number of transactions

First/Last SeenHistorical

Wallet activity timeline

Token HoldingsReal-time

All ERC-20 and ERC-721 tokens

DeFi PositionsReal-time

Active positions in protocols

NFT CollectionReal-time

Owned NFTs and collections

Gas SpentHistorical

Total transaction fees paid

Profit/LossCalculated

Realized and unrealized P&L

Wallet Analysis Query
-- Get wallet overview
SELECT
  address,
  eth_balance,
  token_count,
  nft_count,
  first_seen,
  last_active,
  total_tx_count,
  total_gas_spent_eth
FROM wallet_summary
WHERE address = '0x...'

-- Get recent transactions
SELECT
  block_number,
  tx_hash,
  from_address,
  to_address,
  value_eth,
  gas_used,
  timestamp
FROM transactions
WHERE from_address = '0x...'
   OR to_address = '0x...'
ORDER BY block_number DESC
LIMIT 100;

Token Flow Analysis

Token flow analysis tracks how tokens move through the ecosystem. By monitoring flows to and from exchanges, you can gauge market sentiment and anticipate price movements.

Exchange Inflows

Tokens moving TO exchanges typically indicate selling pressure.

Signal: Bearish when high

Exchange Outflows

Tokens moving FROM exchanges suggest accumulation and holding.

Signal: Bullish when high

Net Flow

Inflows minus outflows shows overall market direction.

Signal: Context dependent

Token Flow Diagram

Wallets
Sell Pressure
Accumulation
Exchanges
DeFi

Whale Watching

"Whales" are addresses holding large amounts of cryptocurrency. Their movements can significantly impact market prices, making them important to monitor.

Whale Classification

Mega Whale> 10,000 ETH
~500 addresses
Whale1,000 - 10,000 ETH
~2,500 addresses
Dolphin100 - 1,000 ETH
~25,000 addresses
Fish< 100 ETH
Millions of addresses
Live Whale Alerts
Sample Data
5,000 ETH deposited to Binance
2 min ago
0x1234...5678Potential sell pressure
10,000 ETH withdrawn from Coinbase
15 min ago
0xabcd...efghLong-term holding signal
Large USDC transfer between wallets
1 hour ago
0x9876...5432OTC deal or repositioning

Transaction Analysis

Anatomy of a Transaction

Sender & Receiver

The from and to addresses involved in the transaction

Value & Gas

Amount transferred and transaction fee paid

Input Data

Function calls and parameters for contract interactions

Logs & Events

Events emitted during contract execution

Example: Uniswap V3 Swap Transaction

Transaction Details

Hash:0x1234...abcd
Block:18,500,000
From:0xuser...1234
To:Uniswap Router
Gas Used:185,000
Gas Price:25 Gwei

Decoded Action

Swap Executed
Sold:1.5 ETH
Received:2,850 USDC
Rate:1 ETH = $1,900
Slippage:0.12%

Best Practices

Do

  • • Use multiple data sources to confirm signals
  • • Consider context (market conditions, news)
  • • Track labeled addresses (exchanges, funds)
  • • Set up alerts for significant movements
  • • Look at historical patterns for comparison

Don't

  • • React to single whale movements in isolation
  • • Assume all exchange flows mean immediate trades
  • • Ignore the possibility of internal transfers
  • • Base decisions solely on on-chain data
  • • Follow whale movements blindly

Start Tracking On-Chain Data

Set up wallet alerts, track whale movements, and analyze token flows with ChainLens.