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
Monitor any address for balance changes, transactions, and token movements.
Token Flow Analysis
Track how tokens move between exchanges, protocols, and wallets.
Whale Watching
Identify and monitor large holders and their trading patterns.
Transaction Analysis
Deep dive into individual transactions and their effects.
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
Current holdings in ETH and tokens
Total number of transactions
Wallet activity timeline
All ERC-20 and ERC-721 tokens
Active positions in protocols
Owned NFTs and collections
Total transaction fees paid
Realized and unrealized P&L
-- 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.
Exchange Outflows
Tokens moving FROM exchanges suggest accumulation and holding.
Net Flow
Inflows minus outflows shows overall market direction.
Token Flow Diagram
Whale Watching
"Whales" are addresses holding large amounts of cryptocurrency. Their movements can significantly impact market prices, making them important to monitor.
Whale Classification
0x1234...5678Potential sell pressure0xabcd...efghLong-term holding signal0x9876...5432OTC deal or repositioningTransaction 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
Transaction Details
0x1234...abcd0xuser...1234Uniswap RouterDecoded Action
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.