diff --git a/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/AdminRpcModule.cs b/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/AdminRpcModule.cs index 25da270be2a..a6c501da755 100644 --- a/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/AdminRpcModule.cs +++ b/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/AdminRpcModule.cs @@ -72,7 +72,8 @@ private void BuildNodeInfo() private void UpdateEthProtocolInfo() { _nodeInfo.Protocols["eth"].Difficulty = _blockTree.Head?.TotalDifficulty ?? 0; - _nodeInfo.Protocols["eth"].NewtorkId = _blockTree.ChainId; + _nodeInfo.Protocols["eth"].NewtorkId = _blockTree.NetworkId; + _nodeInfo.Protocols["eth"].ChainId = _blockTree.ChainId; _nodeInfo.Protocols["eth"].HeadHash = _blockTree.HeadHash; _nodeInfo.Protocols["eth"].GenesisHash = _blockTree.GenesisHash; _nodeInfo.Protocols["eth"].Config = _parameters; diff --git a/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/EthProtocolInfo.cs b/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/EthProtocolInfo.cs index 228f91c7dda..e70ef78ba29 100644 --- a/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/EthProtocolInfo.cs +++ b/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/EthProtocolInfo.cs @@ -18,6 +18,8 @@ public class EthProtocolInfo public Hash256 HeadHash { get; set; } [JsonPropertyName("network")] public ulong NewtorkId { get; set; } + [JsonPropertyName("chainId")] + public ulong ChainId { get; set; } [JsonPropertyName("config")] public ChainParameters Config { get; set; } }