Skip to main content

🌐 Introduction

This library allows you to work with the TON blockchain API from Python.

Features:

  • Creating and importing wallet
  • Getting wallets balance
  • Getting transactions of any wallet
  • Transfer coins
  • Executing methods of smart-contracts
  • Transfer NFT

PyPI version visitors

How to install:

pip install ton

If you have an illegal instruction error then you need to build libtonlibjson by yourself:

git clone https://github.com/psylopunk/ton && cd ton
chmod +x build_tonlib.sh && ./build_tonlib.sh # docker is needed

Getting started

Examples will give a general look at the library. They describe almost all supported methods, but in addition, below you can see each method in detail. To make a custom request to libtonlibjson, check out list of available methods and execute it using client.execute

More documentation here

Troubleshooting

Found a bug? Or just improvments? -- Read more about this in Troubleshooting

Donate

Metadata

Release files for ton 0.26

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ton 0.26
File Size Uploaded Provenance Actions
ton-0.26.tar.gz 11.4 MB Without provenance Details for ton-0.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ton 0.26
File Interpreter ABI Platform Actions
ton-0.26-py3-none-any.whl Python 3 none any Details for ton-0.26-py3-none-any.whl

Total release size: 22.8 MB

Release files / ton-0.26.tar.gz

Download URL ton-0.26.tar.gz
Size 11.4 MB
Tags Source
SHA-256 checksum
How to use checksums
0839d41203c069345cc3dc1c54f79fc685682676e4181179315d9d6a7c822a0b
BLAKE2b-256 checksum
How to use checksums
eef937535eef669411fb030c752be985c07b25aa9d11f5c18e618fce734ac9e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / ton-0.26-py3-none-any.whl

Download URL ton-0.26-py3-none-any.whl
Size 11.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
904846887235c9e638590fddbbbb80245d5faf41b87e870c6c854ea2b3d34643
BLAKE2b-256 checksum
How to use checksums
b68bba6ed73ad6da625eee594daeacb5d0d494f6b0d079a313823a54aee2fe3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for ton 0.26

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.26 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page