Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-network-id / stringToNetworkId
Function: stringToNetworkId()
stringToNetworkId(
networkId
):null
|NetworkId
Converts a potential network ID into a NetworkId. Returns null if the string is not a valid network ID.
Parameters
networkId
string
The string to convert.
Returns
null
| NetworkId