# 📦 TON Connect

[![TON](https://img.shields.io/badge/TON-grey?logo=TON&logoColor=40AEF0)](https://ton.org)
![Python Versions](https://img.shields.io/badge/Python-3.10%20--%203.14-black?color=FFE873&labelColor=3776AB)
[![PyPI](https://img.shields.io/pypi/v/ton-connect.svg?color=FFE873&labelColor=3776AB)](https://pypi.python.org/pypi/ton-connect)
[![License](https://img.shields.io/github/license/nessshon/ton-connect)](https://github.com/nessshon/ton-connect/blob/main/LICENSE)
[![Donate](https://img.shields.io/badge/Donate-TON-blue)](https://tonviewer.com/UQCZq3_Vd21-4y4m7Wc-ej9NFOhh_qvdfAkAYAOHoQ__Ness)

![Image](https://raw.githubusercontent.com/nessshon/ton-connect/main/assets/banner.png)

![Downloads](https://pepy.tech/badge/ton-connect)
![Downloads](https://pepy.tech/badge/ton-connect/month)
![Downloads](https://pepy.tech/badge/ton-connect/week)

### Python SDK for [TON Connect](https://github.com/ton-connect)

Wallet connections, transactions, data signing, and proof verification for TON.

**Features**

- **Wallet Connection** — connect and manage wallet sessions
- **Send Transaction** — sign, send, and handle errors
- **Sign Data** — text, binary, and cell payloads
- **TON Proof** — wallet ownership verification
- **Storage** — file, memory, or custom backend

> Support this project — TON: `donate.ness.ton`  
> `UQCZq3_Vd21-4y4m7Wc-ej9NFOhh_qvdfAkAYAOHoQ__Ness`

## Installation

```bash
pip install ton-connect
```

## Examples

**Connect Wallet**

- [Simple Connect](https://github.com/nessshon/ton-connect/blob/main/examples/connect_wallet/ton_addr.py)
- [Connect with TON Proof](https://github.com/nessshon/ton-connect/blob/main/examples/connect_wallet/ton_proof.py)
- [Import Connection](https://github.com/nessshon/ton-connect/blob/main/examples/import_connection.py)

**Send Request**

- [Send Transaction](https://github.com/nessshon/ton-connect/blob/main/examples/send_request/transaction.py)
- [Sign Data](https://github.com/nessshon/ton-connect/blob/main/examples/send_request/sign_data.py)

**Verification**

- [Check TON Proof](https://github.com/nessshon/ton-connect/blob/main/examples/check_ton_proof.py)
- [Check Sign Data](https://github.com/nessshon/ton-connect/blob/main/examples/check_sign_data.py)

## License

This repository is distributed under the [MIT License](https://github.com/nessshon/ton-connect/blob/main/LICENSE).
