Skip to main content

networkIdToHex

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

Function: networkIdToHex()

networkIdToHex(networkId): string

Converts a network ID to hex representation. Used for debugging.

Parameters​

networkId​

NetworkId

The network ID to convert to hex.

Returns​

string