Tonutils is a high-level object-oriented library for Python designed to facilitate interactions with the TON blockchain.
Project description
📦 Tonutils
Tonutils is a high-level object-oriented library for Python designed to facilitate interactions with the TON blockchain. It seamlessly integrates three prominent services for working with TON:
- tonapi.io - REST api to TON blockchain explorer.
- toncenter.com - Fast and reliable HTTP API for The Open Network.
- pytoniq - Library for direct interaction with Lite servers.
By combining these services, Tonutils provides a powerful and flexible toolset for developers, making it easier to work with the TON ecosystem.
Installation
pip install tonutils
To use the LiteClient
, which requires the pytoniq library, install it with the
optional dependencies:
pip install tonutils[pytoniq]
Usage
Providers
• LiteClient For better performance, pass your own config, available from the bot.
Client Initialization:
from tonutils.client import LiteClient
config = None
IS_TESTNET = True
client = LiteClient(config=config, is_testnet=IS_TESTNET)
• TonapiClient To use you need to obtain an API key on the tonconsole.com.
Client Initialization
from tonutils.client import TonapiClient
API_KEY = ""
IS_TESTNET = True
client = TonapiClient(api_key=API_KEY, is_testnet=IS_TESTNET)
• ToncenterClient To use you need to obtain an API key from the bot.
Client Initialization
from tonutils.client import ToncenterClient
API_KEY = ""
IS_TESTNET = True
client = ToncenterClient(api_key=API_KEY, is_testnet=IS_TESTNET)
Wallet Operation Guide
-
Common Wallet
-
Highload Wallet
NFT Operations Guide
-
Standard NFTs
-
Editable NFTs
-
Soulbound NFTs
Donations
TON - EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess
USDT (TRC-20) - TXuPpjZvqhjM3X7BFnzR6bBarB6svmCpt8
Contribution
We welcome your contributions! If you have ideas for improvement or have identified a bug, please create an issue or submit a pull request.
Support
Supported by TON Society, Grants and Bounties program.
License
This repository is distributed under the MIT License. Feel free to use, modify, and distribute the code in accordance with the terms of the license.
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
Hashes for tonutils-0.0.2b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68d7720a75a78a7cef9e4a6c123907893e190484aa8f5a8729e491bdc41d0977 |
|
MD5 | 31cd078537aea833a706a2cb0b032961 |
|
BLAKE2b-256 | 76d557b56034448852d5b662ee79cc72a57c7f5db6451f2d35dc4e3d550bd394 |