A Guide to On-Chain Analysis and How It Works