Configuration that can be passed to {createScClient}.

interface EmbeddedNodeConfig {
    maxLogLevel?: number;
    workerFactory?: (() => Worker);
}

Properties

maxLogLevel?: number

The client prints logs in the console. By default, only log levels 1, 2, and 3 (corresponding respectively to ERROR, WARN, and INFO) are printed.

In order to more easily debug problems, you can pass 4 (DEBUG) or more.

This setting is only taken into account between the moment when you use this chain to add a chain for the first time, and the moment when all the chains that you have added have been removed.

If {createScClient} is called multiple times with multiple different log levels, the highest value will be used.

workerFactory?: (() => Worker)

Creates a Worker that is expected to import @substrate/connect/worker.

If this option isn't set then the smoldot light client will run entirely on the "current thread", which might slow down other components that also run on this thread.

MMNEPVFCICPMFPCPTTAAATR