On-Chain vs. Off-Chain Transactions: What You Need to Know