Skip to main content

Tonutils is a high-level object-oriented library for Python designed to facilitate interactions with the TON blockchain.

Project description

📦 Tonutils

TON PyPI Python Versions License

Image

Downloads Downloads Downloads

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)

Guide

Wallet Operations

Jetton Operations

NFT Operations

DNS Operations

Donations

Your donation supports the future of this project. Every contribution helps stimulate innovation and sustain development!

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.

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

tonutils-0.0.4b2.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tonutils-0.0.4b2-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file tonutils-0.0.4b2.tar.gz.

File metadata

  • Download URL: tonutils-0.0.4b2.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tonutils-0.0.4b2.tar.gz
Algorithm Hash digest
SHA256 571c1ccd711f02cf47a20ab3892d1fe2681206e2ccfaa45f7cf889741a0b7f88
MD5 cc3b1d4fa92aba24545ccd49af01dad2
BLAKE2b-256 40a25f309a5c845087b33a0a1babd04a43a4e2ef51483d7f15a9b2a6982a5d33

See more details on using hashes here.

File details

Details for the file tonutils-0.0.4b2-py3-none-any.whl.

File metadata

  • Download URL: tonutils-0.0.4b2-py3-none-any.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tonutils-0.0.4b2-py3-none-any.whl
Algorithm Hash digest
SHA256 31029d81cfd8a6aeceb1221962b2c9377c86a2fe97d7ae06248d7436df67fb11
MD5 0fee0a54b7b19b84dce39aa71d5a5a39
BLAKE2b-256 47df7a03fe92a5194264e5af89a2c0806bd2b2856a89f6021453e6e4bf72f3b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page