Python client for The Open Network
Project description
🌐 Introduction
This library allows you to work with the TON blockchain 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
How to install:
pip install ton
If you have an illegal instruction error then you need to build libtonlibjson by yourself:
git clone https://github.com/psylopunk/ton && cd ton
chmod +x build_tonlib.sh && ./build_tonlib.sh # docker is needed
Getting started
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
Troubleshooting
Found a bug? Or just improvments? -- Read more about this in Troubleshooting
Donate
- BTC – 192gK2df3izkpaNgcMbfEDrLgoofyjjfeC
- TON – EQCl1Ug9ZT9ZfGyFH9l4q-bqaUy6kyOzVPmrk7bivmVKJRRZ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ton-0.26.tar.gz
.
File metadata
- Download URL: ton-0.26.tar.gz
- Upload date:
- Size: 11.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0839d41203c069345cc3dc1c54f79fc685682676e4181179315d9d6a7c822a0b |
|
MD5 | 02b7be93efe2e2071bea38ad9449d692 |
|
BLAKE2b-256 | eef937535eef669411fb030c752be985c07b25aa9d11f5c18e618fce734ac9e1 |
File details
Details for the file ton-0.26-py3-none-any.whl
.
File metadata
- Download URL: ton-0.26-py3-none-any.whl
- Upload date:
- Size: 11.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904846887235c9e638590fddbbbb80245d5faf41b87e870c6c854ea2b3d34643 |
|
MD5 | 65ecb53496651fc057f605299f766e4b |
|
BLAKE2b-256 | b68bba6ed73ad6da625eee594daeacb5d0d494f6b0d079a313823a54aee2fe3b |