Skip to content

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.

NamEngineModule

number

string

number

void