Metadata-Version: 2.4
Name: toncenter
Version: 0.2.0
Summary: Python SDK for TON Center — REST API and Streaming for TON blockchain.
Author: nessshon
Maintainer: nessshon
License-Expression: MIT
Project-URL: Homepage, https://github.com/nessshon/toncenter/
Project-URL: Documentation, https://toncenter.ness.su/
Keywords: AsyncIO,REST API,SDK,TON,TON Center,TON blockchain,The Open Network,blockchain,crypto
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <3.15,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: pydantic<3.0,>=2.4.1
Dynamic: license-file

# 📦 TON Center

[![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/toncenter.svg?color=FFE873&labelColor=3776AB)](https://pypi.python.org/pypi/toncenter)
[![License](https://img.shields.io/github/license/nessshon/toncenter)](https://github.com/nessshon/toncenter/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/toncenter/main/assets/banner.png)

![Downloads](https://pepy.tech/badge/toncenter)
![Downloads](https://pepy.tech/badge/toncenter/month)
![Downloads](https://pepy.tech/badge/toncenter/week)

### Python SDK for [TON Center](https://toncenter.com)

Access TON blockchain data via REST API and real-time streaming (SSE & WebSocket).  
API key optional for REST (~1 RPS without key), required for streaming — obtain via [@toncenter](https://t.me/toncenter) bot on Telegram.

> For creating wallets, transferring TON, jettons, etc., use [tonutils](https://github.com/nessshon/tonutils).

**Features**

- **REST API v2** — direct access to TON nodes (accounts, transactions, blocks, smart contracts)
- **REST API v3** — indexed and enriched data (jettons, NFT, DNS, actions, traces)
- **Streaming** — real-time events via SSE and WebSocket

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

## Installation

```bash
pip install toncenter
```

[Claude Code](https://claude.ai/code) plugin:
```
/plugin marketplace add nessshon/claude-plugins
/plugin install toncenter@nessshon-plugins
```

## Documentation

[Documentation](https://toncenter.ness.su/) — API reference, guides, and streaming examples.  
[llms.txt](https://toncenter.ness.su/llms.txt) — machine-readable docs for AI tools.

## License

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