> For the complete documentation index, see [llms.txt](https://docs.threshold.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.threshold.network/app-development/tbtc-sdk/guides/initialize-sdk.md).

# Initialize SDK

Before initializing the tBTC SDK instance in your project, you need to answer the following questions:

* What Bitcoin network and which tBTC contracts do you plan to interact with?
* Do you want to perform just read-only actions or send transactions as well?

Answering those questions will allow initializing the SDK in the right way. The SDK is prepared to handle common use cases but provides some flexibility as well. This guide explains that in detail.

## Specific guides

{% hint style="info" %}
These guides will show you how to initialize the SDK in mainnet, testnet, crosschain or custom mode.
{% endhint %}

{% content-ref url="/pages/eoNzev0ciRsjBzGE4Wh7" %}
[Ethereum and Bitcoin mainnet](/app-development/tbtc-sdk/guides/initialize-sdk/ethereum-and-bitcoin-mainnet.md)
{% endcontent-ref %}

{% content-ref url="/pages/IyyThGGiDlY4l6D21QDf" %}
[Ethereum and Bitcoin testnet](/app-development/tbtc-sdk/guides/initialize-sdk/ethereum-and-bitcoin-testnet.md)
{% endcontent-ref %}

{% content-ref url="/pages/vzYgTQooYel4wmCBWok2" %}
[Crosschain](/app-development/tbtc-sdk/guides/initialize-sdk/crosschain.md)
{% endcontent-ref %}

{% content-ref url="/pages/qJOdHUlK5bVgW7WuzWGQ" %}
[Custom mode](/app-development/tbtc-sdk/guides/initialize-sdk/custom-mode.md)
{% endcontent-ref %}


---

# 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.threshold.network/app-development/tbtc-sdk/guides/initialize-sdk.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.
