Skip to main content

getLedgerNetworkId

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 / getLedgerNetworkId

Function: getLedgerNetworkId()

getLedgerNetworkId(): NetworkId

Retrieves the currently set global network identifier as a ledger.NetworkId value.

Returns​

NetworkId

The currently set ledger.NetworkId.