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

# Getting Started

> Python SDK for TON Center

Read blockchain data, query smart contracts, send transactions, and subscribe to real-time events.

## Installation

```bash theme={"theme":{"light":"github-light-default","dark":"dark-plus"}}
pip install toncenter
```

| Requirement | Version |
| ----------- | ------- |
| Python      | 3.10+   |
| aiohttp     | 3.9+    |
| pydantic    | 2.4+    |

## Quick Start

```python theme={"theme":{"light":"github-light-default","dark":"dark-plus"}}
import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network
from toncenter.utils import to_amount


async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        info = await client.v2.accounts.get_address_information(
            "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
        )
        print(f"Balance: {to_amount(int(info.balance))} TON")


if __name__ == "__main__":
    asyncio.run(main())
```

<Card title="More Examples" icon="github" href="https://github.com/nessshon/toncenter/tree/main/examples">
  REST v2, REST v3, SSE, and WebSocket examples.
</Card>

## Explore

<CardGroup cols={2}>
  <Card title="REST API" icon="bolt" href="/rest/overview">
    Query accounts, transactions, Jettons, NFTs via V2 liteserver and V3 indexed database.
  </Card>

  <Card title="Streaming" icon="satellite-dish" href="/streaming/overview">
    Real-time blockchain events over SSE and WebSocket.
  </Card>

  <Card title="AI Plugin" icon="wand-magic-sparkles" href="/claude-plugin">
    Query TON blockchain through natural language in Claude Code.
  </Card>

  <Card title="Utilities" icon="wrench" href="/utilities">
    Address conversion and amount formatting helpers.
  </Card>
</CardGroup>
