setNetworkID(networkID)
Network ID is same with chain ID. Because it is required when creating all operations, set the exact network ID of the network to which the operation will be sent. Even if it is not set, 'mitum' is set as the default value.
Feature
Set the mitum network ID. (Note: The default networkID is 'mitum')
Parameters
string
networkID
Return Value
null
example
mitum.setNetworkID("TestId");
const info = mitum.getNetworkID();
console.log(info);
// output
TestId
Last updated