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

Vanity 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) - TGKmm9H3FApFw8xcgRcZDHSku68vozAjo9

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.9.tar.gz (50.1 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.9-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

Details for the file tonutils-0.0.9.tar.gz.

File metadata

  • Download URL: tonutils-0.0.9.tar.gz
  • Upload date:
  • Size: 50.1 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.9.tar.gz
Algorithm Hash digest
SHA256 9d8dd52bc31813f00b9cbaa8d3031e6de66c06acb89fd170038e641a0d2cd59d
MD5 9abbafeb47e1aa86021a9fabdc6dce9a
BLAKE2b-256 702621c5e749a04bcd52cd5e58e095d09a54f90c6e993878c1204e1d8023e95d

See more details on using hashes here.

File details

Details for the file tonutils-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: tonutils-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 80.2 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4446542bb50577b7a3f030f6b6d6196c4d9bc8e1eff561c8502c91fbbf3e17
MD5 121997ec07c15564622713439cd533d8
BLAKE2b-256 d85b7579edd23a5fb34e00668c05e29aed70a860f6db2b207f3e9abc9a708f7e

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