> For the complete documentation index, see [llms.txt](https://docs.endless.link/endless/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.endless.link/endless/devbuild/build/endless-sdks/typescript-sdk/sdk-configuration.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
