Skip to main content

getNetworkId

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


Midnight.js API Reference / @midnight-ntwrk/midnight-js-network-id / getNetworkId

Function: getNetworkId()

getNetworkId(): string

Retrieves the currently set global network identifier.

Returns

string

The currently set NetworkId.

Throws

If setNetworkId has not been called.