@inherits LayoutComponentBase @using Console = HyperCube.Utils.AdvConsole;
@if (connected) { } else { } @foreach (var value in Networks) { } Правовая информация Контакты
@Body
@using HyperCube.Models; @code { List Networks = new(); bool connected = false; protected override async Task OnInitializedAsync() { try { await Blockchain.GetInstance().Initialize(); if (Blockchain.Connected != "" && Blockchain.Connected != "none") { connected = true; Networks.Add(Blockchain.Connected); } else { connected = false; Networks.Add("Blockchain not connected"); } } catch (Exception e) { Console.WriteLine(e.Message + ", stack trace:" + e.StackTrace); } } }