Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
Response
result
— the chain ID of the underlying L1 network, returned as a hexadecimal string.
You can use the Chainstack EVM Swiss Army Knife to convert values.
Use case
For developers building on zkSync,zks_L1ChainId
provides a straightforward way to verify the L1 network their applications are operating on programmatically. This is particularly useful for applications that are deployed across multiple environments to avoid common pitfalls such as contract interaction on an unintended network, which can lead to loss of funds or data integrity issues.Body
application/json