> For the complete documentation index, see [llms.txt](https://support.cregis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.cregis.com/4.-developer-and-payment-engine/waas/integrating-the-ton-chain-via-api.md).

# Integrating the TON Chain via API

1. **Configure TON Currency in the Wallet**\
   Follow the steps shown in the illustration to properly configure the TON currency in your wallet.\ <br>

   <figure><img src="https://3263384427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg3NzJ0yGNKhTsgI2zNjK%2Fuploads%2FBSsJ5USyZTSxPdV9VxtD%2Fimage.png?alt=media&amp;token=742f3785-035e-403b-bd1e-3efaaca80195" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://3263384427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg3NzJ0yGNKhTsgI2zNjK%2Fuploads%2FKd1EIvwuqsZdpTuR9ZMI%2Fimage.png?alt=media&amp;token=ea20d987-592c-4b64-99f5-416c16959a7e" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://3263384427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg3NzJ0yGNKhTsgI2zNjK%2Fuploads%2FwY2xuXuQ6PQbPgm5VFKP%2Fimage.png?alt=media&amp;token=b97d668c-6c47-4e95-91b5-ff482634976c" alt=""><figcaption></figcaption></figure>
2. **Access the TON Address Page in the Project**\
   Navigate to the **TON Address Page** within the project.<br>

   <figure><img src="https://3263384427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg3NzJ0yGNKhTsgI2zNjK%2Fuploads%2FrMyzXQPcnwHqa4A1zK9N%2Fimage.png?alt=media&amp;token=15cc881f-a33d-43f6-8e4f-e30ab2ab271d" alt=""><figcaption></figcaption></figure>
3. **Add and Configure Addresses**\
   Create a new address and complete the required configurations.<br>

   <figure><img src="https://3263384427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg3NzJ0yGNKhTsgI2zNjK%2Fuploads%2FtRHhc3vIf9oOjv5A16AW%2Fimage.png?alt=media&amp;token=e9e9e1dd-f147-48de-8c37-005752281b1a" alt=""><figcaption></figcaption></figure>
4. **Activate the Address**\
   After creating the address, it must be activated. To do so, transfer a small amount of TON to the address and then send it back out.

<mark style="color:green;">**Important: If the address is not activated and tokens are directly deposited to it, the API will not trigger a callback.**</mark>


---

# 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://support.cregis.com/4.-developer-and-payment-engine/waas/integrating-the-ton-chain-via-api.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.
