SDK Configuration

TS SDK Configuration

Endless class

The first step to interact with the Endless chain using the SDK it to instantiate an Endless class. This class is the main entry point into Endless's APIs.

const endless = new Endless();

EndlessConfig class

Sometimes you might want to use custom configurations when interacting with the Endless chain. For that we have EndlessConfig class that holds the config information for the SDK client instance.

const endlessConfig = new EndlessConfig({...})

Available configuration

/** The Network that this SDK is associated with. Defaults to DEVNET */
readonly network: Network;

/**
 * The client instance the SDK uses. Defaults to `@endlesss-labs/endless-client`
 */
readonly client: Client;

/**
 * The optional hardcoded fullnode URL to send requests to instead of using the network
 */
readonly fullnode?: string;

/**
    * The optional hardcoded prover service URL to send requests to instead of using the network
    */
readonly prover?: string;

/**
 * A configuration object we can pass with the request to the server.
 */
readonly clientConfig?: ClientConfig;

Last updated