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

Reference: Here

Parameters

None

Returns

String - The current network id. The full list of current network IDs is available at chainlist.org. The Hedera networks are:
  • 295: Hedera Mainnet
  • 296: Hedera Testnet