# SDK Configuration

## TS SDK Configuration <a href="#ts-sdk-configuration" id="ts-sdk-configuration"></a>

### `Endless` class <a href="#endless-class" id="endless-class"></a>

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.

```js
const endless = new Endless();
```

### Endless`Config` class <a href="#endlessconfig-class" id="endlessconfig-class"></a>

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.

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

### Available configuration <a href="#available-configuration" id="available-configuration"></a>

```js
/** 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;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.endless.link/endless/devbuild/build/endless-sdks/typescript-sdk/sdk-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
