public JObject ToJson() { return(new JObject { ["id"] = Id, ["hash"] = Hash.ToString(), ["nef"] = Nef.ToJson(), ["manifest"] = Manifest.ToJson(), ["updatehistory"] = new JArray(UpdateHistory.Select(u => new JNumber(u)).ToArray()) }); }
public JObject ToJson() { return(new JObject { ["id"] = Id, ["hash"] = Hash.ToString(), ["nef"] = Nef.ToJson(), ["manifest"] = Manifest.ToJson(), ["activeblockindex"] = ActiveBlockIndex }); }