> 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.threshold.network/app-development/tbtc-sdk/guides/initialize-sdk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
