using Nethereum.Hex.HexTypes; using Nethereum.JsonRpc.Client; using Nethereum.RPC.Infrastructure; namespace Nethereum.RPC.Eth { /// /// eth_chainId /// Returns the currently configured chain id, a value used in replay-protected transaction signing as introduced by EIP-155. /// /// Parameters /// none /// Returns /// /// QUANTITY - big integer of the current chain id. Defaults are mainnet=61, morden=62. /// Example /// /// curl -X POST --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' /// /// Result /// { /// "id":83, /// "jsonrpc": "2.0", /// "result": "0x3d" // 61 /// } /// public class EthChainId : GenericRpcRequestResponseHandlerNoParam, IEthChainId { public EthChainId(IClient client) : base(client, ApiMethods.eth_chainId.ToString()) { } } }