@midnight-ntwrk/midnight-js-network-id v0.2.5 • API
Midnight.js API Reference v0.2.5 / @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