Skip to main content

createSeServer

@totemsdk/se-server


@totemsdk/se-server / createSeServer

Function: createSeServer()

createSeServer(config, monitorOpts?): SeServer

Create a fully configured SE server.

Runs migrateStatechainTables on first listen() call. The returned app can also be mounted into an existing Express app at any path if you prefer not to bind a new port.

The router is mounted at both /statechain (legacy) and /v1/statechain (versioned, stable).

Parameters

config

SeServerConfig

monitorOpts?

TimelockMonitorOptions

Returns

SeServer