Skip to main content

stringToNetworkId

For the complete documentation index, see llms.txt

Midnight.js API Reference v2.0.2


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