https://github.com/psylopunk/pytonlib
Simple python client for The Open Network
https://github.com/psylopunk/pytonlib
blockchain cryptocurrency library python python-library ton tonlibjson
Last synced: 5 days ago
JSON representation
Simple python client for The Open Network
- Host: GitHub
- URL: https://github.com/psylopunk/pytonlib
- Owner: psylopunk
- License: mit
- Created: 2022-01-25T23:53:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T12:07:50.000Z (almost 2 years ago)
- Last Synced: 2025-08-30T01:53:10.419Z (5 months ago)
- Topics: blockchain, cryptocurrency, library, python, python-library, ton, tonlibjson
- Language: Python
- Homepage: https://pydocs.xton.me/
- Size: 21.8 MB
- Stars: 89
- Watchers: 5
- Forks: 20
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌐 Introduction
This library allows you to work with the [TON blockchain](https://ton.org) API from Python.
**Features**:
* Creating and importing wallet
* Getting wallets balance
* Getting transactions of any wallet
* Transfer coins
* Executing methods of smart-contracts
* Transfer NFT
[](https://badge.fury.io/py/ton)   [](https://ton.org)
### How to install:
```bash
pip install ton
```
If you have an _illegal instruction_ error then you need to build libtonlibjson by yourself:
```bash
git clone https://github.com/psylopunk/pytonlib && cd pytonlib
&& ./build_tonlib.sh # docker is needed
```
#### Getting started
[Examples](https://github.com/psylopunk/pytonlib/tree/main/examples) will give a general look at the library. They describe almost all supported methods, but in addition, below you can see each method in detail. To make a custom request to `libtonlibjson`, check out list of available methods and execute it using `client.execute`
#### [More documentation here](developer-interface.md)
#### Troubleshooting
Found a bug? Or just improvments? -- Read more about this in [Troubleshooting](troubleshooting.md)
**Donate**
* BTC – 192gK2df3izkpaNgcMbfEDrLgoofyjjfeC
* TON – [EQCl1Ug9ZT9ZfGyFH9l4q-bqaUy6kyOzVPmrk7bivmVKJRRZ](ton://transfer/EQCl1Ug9ZT9ZfGyFH9l4q-bqaUy6kyOzVPmrk7bivmVKJRRZ)