> For the complete documentation index, see [llms.txt](https://tgbtc.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgbtc.gitbook.io/docs/whitepaper/key-concepts/additional-components-and-security-mechanisms/refund-mechanism-for-expired-deposits.md).

# Refund Mechanism for Expired Deposits

Given that the set of validators in the TON network changes every 18 hours, deposit addresses associated with these validators also ”expire” after each rotation. This means that if a user initiates a Bitcoin transaction and the corresponding tgBTC has not yet been minted before the validator set changes, the deposit address will no longer be valid, and the transaction cannot be completed. To address this situation, the TON Teleport BTC system includes a refund mechanism that allows users to reclaim their BTC in case of expired deposit addresses.

When generating a deposit address, the user has the option to provide a Bitcoin public key, which will be used to construct an OP CSV script (CheckSequenceVerify) within the Bitcoin transaction. This script allows the user to reclaim their deposited BTC after a specified timeout period (typically two weeks) if the peg-in operation is not completed within that time. The refund process differs depending on the level of security chosen by the user:

<figure><img src="/files/wprJ9hdj1Qi24ZA11OYN" alt=""><figcaption></figcaption></figure>

The refund process is designed to be flexible and secure, allowing users to choose the level of protection that best suits their needs while maintaining the trustless nature of the TON Teleport BTC system.


---

# 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:

```
GET https://tgbtc.gitbook.io/docs/whitepaper/key-concepts/additional-components-and-security-mechanisms/refund-mechanism-for-expired-deposits.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.
