Skip to main content

Python SDK for TONAPI — REST API, streaming, and webhooks for TON blockchain.

Project description

📦 TON API

TON Python Versions PyPI License Donate

Image

Downloads Downloads Downloads

Python SDK for TON API

Access TON blockchain data via REST API, real-time streaming, and webhooks.
API key optional for REST, required for streaming and webhooks — obtain at tonconsole.com.

For creating wallets, transferring TON, jettons, etc., use tonutils.

Features

  • REST API — accounts, NFTs, jettons, DNS, and more
  • Streaming — real-time events via SSE and WebSocket
  • Webhooks — push notifications with event dispatcher

Support this project — TON: donate.ness.ton
UQCZq3_Vd21-4y4m7Wc-ej9NFOhh_qvdfAkAYAOHoQ__Ness

Installation

pip install pytonapi

Claude Code plugin:

/plugin marketplace add nessshon/claude-plugins
/plugin install tonapi@nessshon-plugins

Documentation

Documentation — API reference, streaming, and webhooks guides.
llms.txt — auto-generated machine-readable docs for AI tools.

Examples

REST API

Streaming (SSE & WebSocket)

Webhooks

Transfers (requires tonutils)

License

This repository is distributed under the MIT 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

pytonapi-2.1.0.tar.gz (47.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytonapi-2.1.0-py3-none-any.whl (69.6 kB view details)

Uploaded Python 3

File details

Details for the file pytonapi-2.1.0.tar.gz.

File metadata

  • Download URL: pytonapi-2.1.0.tar.gz
  • Upload date:
  • Size: 47.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pytonapi-2.1.0.tar.gz
Algorithm Hash digest
SHA256 ace444d80ad0d22f5fc82de231647ceff69a1040c269b2b9e94ce5d573913548
MD5 8ea8b8707fdf7b267846d690e913ecc2
BLAKE2b-256 3091bfe51f6321aaca7267b9ad2e63e196f40f342d3327ea4ba14251053f1d94

See more details on using hashes here.

File details

Details for the file pytonapi-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytonapi-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 69.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pytonapi-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9bf7082548f7a83c634c15057ba676d3aaa4a776af671d42f4518a7ee7232ed
MD5 43c56c0ace48c8afa617b36fb08b99e5
BLAKE2b-256 b81d310aa458c827b6c43b1271c35d4d8f679cd12e893ecc5d5a31ebfbea8572

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