//it's called from js side like this: this.electronService.sendCommand("wallet.GetNetworkDetails", null, (returnValue) => { ...do something with returnValue }); // returnValue is a serialized version of the Attributes class containing information like the fork etc.. public async Task <EonSharp.Api.Attributes> GetNetworkDetails() => await _context.GetNetworkDetails();