Skip to main content

Python client for The Open Network

Project description

🌐 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

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

ton-0.26.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

ton-0.26-py3-none-any.whl (11.5 MB view details)

Uploaded Python 3

File details

Details for the file ton-0.26.tar.gz.

File metadata

  • Download URL: ton-0.26.tar.gz
  • Upload date:
  • Size: 11.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ton-0.26.tar.gz
Algorithm Hash digest
SHA256 0839d41203c069345cc3dc1c54f79fc685682676e4181179315d9d6a7c822a0b
MD5 02b7be93efe2e2071bea38ad9449d692
BLAKE2b-256 eef937535eef669411fb030c752be985c07b25aa9d11f5c18e618fce734ac9e1

See more details on using hashes here.

File details

Details for the file ton-0.26-py3-none-any.whl.

File metadata

  • Download URL: ton-0.26-py3-none-any.whl
  • Upload date:
  • Size: 11.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ton-0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 904846887235c9e638590fddbbbb80245d5faf41b87e870c6c854ea2b3d34643
MD5 65ecb53496651fc057f605299f766e4b
BLAKE2b-256 b68bba6ed73ad6da625eee594daeacb5d0d494f6b0d079a313823a54aee2fe3b

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