loadNamModel
loadNamModel(
module,instanceId,modelJson,slimSize):void
Defined in: packages/chain/src/nam/engine.ts:121
Load a .nam document into an instance, or throw with the engine’s own reason.
Not real-time safe: it parses JSON, allocates the network and prewarms it. Call it before the node is in a running chain, which is what building the chain from a preset does.
Parameters
Section titled “Parameters”module
Section titled “module”instanceId
Section titled “instanceId”number
modelJson
Section titled “modelJson”string
slimSize
Section titled “slimSize”number
Returns
Section titled “Returns”void