OP MainnetOP Mainnet API Endpointseth_chainIdCopy pagePOSThttps://opt-mainnet.g.alchemy.com/v2/:apiKeyReturns the chain ID of the current network as a hexadecimal string.Path ParametersapiKeystringRequiredDefaults to docs-demoResponseThe chain ID of the current network in hexadecimal format.