> ## Documentation Index
> Fetch the complete documentation index at: https://developers.stellar.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Timelock

> Lockup some token to be claimed by another user under set conditions.

The [timelock example] demonstrates how to write a timelock and implements a greatly simplified claimable balance similar to the [claimable balance] feature available on Stellar.

[![Open in Codespaces](https://github.com/codespaces/badge.svg)][open-in-github-codespaces]

[![Open in Codeanywhere](https://codeanywhere.com/img/open-in-codeanywhere-btn.svg)][open-in-code-anywhere]

The contract accepts deposits of an amount of a token, and allows other users to claim it before or after a time point.

[open-in-github-codespaces]: https://github.com/codespaces/new?repo=stellar/soroban-examples&editor=web

[open-in-code-anywhere]: https://app.codeanywhere.com/#https://github.com/stellar/soroban-examples

[timelock example]: https://github.com/stellar/soroban-examples/tree/v23.0.0/timelock

[claimable balance]: https://developers.stellar.org/docs/build/guides/transactions/claimable-balances.md
