Skip to main content

Tonutils is a high-level, object-oriented Python library designed to facilitate seamless 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 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

Jetton Operations

NFT Operations

DNS Operations

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


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.1.5b1.tar.gz (55.6 kB view details)

Uploaded Source

Built Distribution

tonutils-0.1.5b1-py3-none-any.whl (84.8 kB view details)

Uploaded Python 3

File details

Details for the file tonutils-0.1.5b1.tar.gz.

File metadata

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

File hashes

Hashes for tonutils-0.1.5b1.tar.gz
Algorithm Hash digest
SHA256 cc52c2a40ab4565a7906ebdaec8ca4cf5ddc78ee6ed3f3ddf1b291c7653ee1d5
MD5 46097e734f732932ce0f7058fe0b9566
BLAKE2b-256 ddc294bca48ed3f27fe9197e5a76cdba890da774314f207726e35df6895c15e1

See more details on using hashes here.

File details

Details for the file tonutils-0.1.5b1-py3-none-any.whl.

File metadata

  • Download URL: tonutils-0.1.5b1-py3-none-any.whl
  • Upload date:
  • Size: 84.8 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.1.5b1-py3-none-any.whl
Algorithm Hash digest
SHA256 551391eb2d5f8ce8272d4cb7a414f70d30902de6506651cae01bc60c0007a954
MD5 2f02929d8b5900d8d8835a360fc28a26
BLAKE2b-256 d80158849f5868cf50addd87bcef077e8a3fc1251190a3cb1e4b51e752693fb0

See more details on using hashes here.

Supported by

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