> For the complete documentation index, see [llms.txt](https://docs.pretoke.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pretoke.xyz/getting-started/connecting-your-wallet.md).

# Connecting Your Wallet

You don't need to create a username or password for PreToke. Your **TON wallet is your account** — connecting it is all you need to log in.

## What you need

* A TON wallet app that supports **TON Connect** (Tonkeeper, MyTonWallet, Tonhub, or any other TON Connect-compatible wallet).
* A small amount of TON in that wallet to cover network fees later on (deposits, withdrawals, and trades all involve tiny blockchain gas fees, usually a fraction of a cent to a few cents worth of TON).

## Step by step

1. Open the platform in your browser, or inside Telegram if you're using the Mini App version.
2. Tap **Connect Wallet**.
3. Your wallet app opens (or a QR code appears if you're on desktop and your wallet is on mobile).
4. Your wallet will ask you to approve a **sign-in request**. This is not a transaction — no funds move and no gas is spent. You're just proving you own the wallet by signing a message with your private key.
5. Approve the request in your wallet app.
6. You're in — the platform now recognizes your wallet address as your account.

## What just happened, in plain terms

When you approve the sign-in request, your wallet signs a piece of data (called a "TON proof") with your private key. The platform's server checks that signature against your wallet's public key to confirm you really own that address — nobody else could have produced a valid signature without your private key.

Once verified, the platform gives your browser a **session token** that it attaches to every request you make afterward, so you don't have to re-approve anything for regular browsing and trading. The token automatically refreshes in the background and expires after 24 hours if you leave the app inactive; reconnecting your wallet signs you back in instantly.

If you opened the platform inside Telegram, your Telegram profile (name and photo) is automatically linked to your account at this step too — no extra action needed.

For the full technical walkthrough (proof format, signature verification, token lifecycle), see [Wallet Login Explained](/how-it-works/wallet-login-explained.md).

## Next step

Once connected, deposit some USDT to start trading — see [Depositing Funds](/getting-started/depositing-funds.md).


---

# 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.pretoke.xyz/getting-started/connecting-your-wallet.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.
