Skip to main content

@midnight-ntwrk/compact-runtime v0.6.13Readme | 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