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. The full list of current network IDs is available at chainlist.org. The Somnia networks are:
  • 5031: Somnia Mainnet
  • 50312: Somnia Testnet