Blockchain, Dotnet, Software Engineering, Technology, Programming.
blockchain.AddBlock(new Block(1, DateTime.Now, "Block 1 Data", "")); blockchain.AddBlock(new Block(2, DateTime.Now, "Block 2 Data", "")); foreach (var block in blockchain.Chain) { Console.WriteLine($"Index: {block.Index}"); Console.WriteLine($"Timestamp: {block.Timestamp}");