Skip to main content
Returns the current network id. This method will use 10 Compute Units.

Reference: Here

Parameters

None

Returns

String - The current network id. Hyperliquid Mainnet returns 999. The full list of network IDs is available at chainlist.org.