Tonutils is a high-level, object-oriented Python library designed to facilitate seamless 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 LiteserverClient
, which requires the pytoniq library, install it with the
optional dependencies:
pip install 'tonutils[pytoniq]'
Donations
Your donation supports the future of this project. Every contribution helps stimulate innovation and sustain development!
TON - EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess
USDT (TRC-20) - TGKmm9H3FApFw8xcgRcZDHSku68vozAjo9
Usage
Providers
• 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)
• LiteserverClient For better performance, pass your own config, available from the bot.
Client Initialization:
from tonutils.client import LiteserverClient
config = None
IS_TESTNET = True
client = LiteserverClient(config=config, is_testnet=IS_TESTNET)
Guide
Wallet Operations
-
Standard Wallet
-
Highload Wallet
-
Preprocessed Wallet
Jetton Operations
-
Mintless Jetton (e.g. Hamster)
-
Standard Jetton
-
Stablecoin Jetton (by Notcoin)
-
DEX DeDust.io
NFT Operations
-
Editable NFTs
-
Soulbound NFTs
-
Standard NFTs
-
Marketplace Getgems.io
DNS Operations
-
Simple Subdomain Manager
Vanity Operations
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
File details
Details for the file tonutils-0.1.4.tar.gz
.
File metadata
- Download URL: tonutils-0.1.4.tar.gz
- Upload date:
- Size: 53.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04d4e3ead0b9abc7bdd51d971742ef265b740d3b59935a70f3c49ae58495fc4 |
|
MD5 | c04177861df206716a1a3472888f76d7 |
|
BLAKE2b-256 | a782e98fd9054685cb2dd1da6f8b0933d33e6199920c962ba9375906112f8f53 |
File details
Details for the file tonutils-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: tonutils-0.1.4-py3-none-any.whl
- Upload date:
- Size: 84.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a02a00d2317b7d87781c932347d21627ccf8e9f2ffbb6e9e35282a847ca2355 |
|
MD5 | 3638606dfef00f0ad1e634cdf0690b11 |
|
BLAKE2b-256 | 263ddd369765e58aacc824f6b0a3e1874ade3912b8775b0f44879ab757fdba8e |