Skip to main content

STonutils 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

stonutils-0.0.6.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

stonutils-0.0.6-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

Details for the file stonutils-0.0.6.tar.gz.

File metadata

  • Download URL: stonutils-0.0.6.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for stonutils-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d649eb133bce469d2fcc821c7abea0842c584689c023a62eecf67774ac89319b
MD5 4a7eb02e4e4b8764634b0cf50312fcc8
BLAKE2b-256 e4b245c29697b7bc5c7848f19b59c5d2f65282585a002f80f2a8fdbad1b70416

See more details on using hashes here.

File details

Details for the file stonutils-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: stonutils-0.0.6-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.12.6

File hashes

Hashes for stonutils-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b497c47c5f7a7fe3ee194368b867cae35ef5cbfbedc37e7b98ad2ef69cfe22bb
MD5 5e16950e47c43b51dd6247fa4480d860
BLAKE2b-256 76a47015af76239be3cd1605abf6df90e7eab789169229dbb940aebbf3c05e3a

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