Interface SogniClientConfig

interface SogniClientConfig {
    appId: string;
    jsonRpcUrl?: string;
    logger?: Logger;
    logLevel?: LogLevel;
    network: SupernetType;
    testnet?: boolean;
}

Properties

appId: string

The application ID string. Must be unique, multiple connections with the same ID will be rejected.

jsonRpcUrl?: string

If provided, the client will connect to this JSON-RPC endpoint to interact with the blockchain

logger?: Logger

Logger to use. If not provided, a default console logger will be used

logLevel?: LogLevel

Log level to use. This option is ignored if a logger is provided

'warn'
network: SupernetType

Which network to use after logging in. Can be 'fast' or 'relaxed'

testnet?: boolean

If true, the client will connect to the testnet. Ignored if jsonRpcUrl is provided