@midnight-ntwrk/compact-runtime v0.6.13 • Readme | API
@midnight-ntwrk/compact-runtime v0.6.13 / setNetworkId
Function: setNetworkId()
setNetworkId(netid): void
Sets the network ID for this instance of the library
Network ID affects serialization formats, and should always be manually set. This library contains a WASM module, any context that initializes this fresh should be considered separate.
Parameters
• netid: NetworkId
Returns
void