{"id":46785305,"url":"https://github.com/tonkeeper/pytonapi","last_synced_at":"2026-03-10T01:13:34.691Z","repository":{"id":161018096,"uuid":"635836061","full_name":"tonkeeper/pytonapi","owner":"tonkeeper","description":"TonAPI SDK allows developers to build decentralized applications on top of the TON blockchain without having to deal with the complexity of the underlying technology.","archived":false,"fork":false,"pushed_at":"2025-07-10T17:23:05.000Z","size":284,"stargazers_count":175,"open_issues_count":2,"forks_count":37,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-01T15:22:40.885Z","etag":null,"topics":["the-open-network","ton","tonapi","tonconsole"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pytonapi/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tonkeeper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-03T14:55:51.000Z","updated_at":"2025-12-24T00:41:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c66fb4cb-aa36-4fd6-890e-8561dda2542f","html_url":"https://github.com/tonkeeper/pytonapi","commit_stats":null,"previous_names":["tonkeeper/pytonapi","nessshon/pytonapi"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/tonkeeper/pytonapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonkeeper%2Fpytonapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonkeeper%2Fpytonapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonkeeper%2Fpytonapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonkeeper%2Fpytonapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonkeeper","download_url":"https://codeload.github.com/tonkeeper/pytonapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonkeeper%2Fpytonapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30320797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["the-open-network","ton","tonapi","tonconsole"],"created_at":"2026-03-10T01:13:33.213Z","updated_at":"2026-03-10T01:13:34.679Z","avatar_url":"https://github.com/tonkeeper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 PyTONAPI\n\n[![TON](https://img.shields.io/badge/TON-grey?logo=TON\u0026logoColor=40AEF0)](https://ton.org)\n[![PyPI](https://img.shields.io/pypi/v/pytonapi.svg?color=FFE873\u0026labelColor=3776AB)](https://pypi.python.org/pypi/pytonapi)\n![Python Versions](https://img.shields.io/badge/Python-3.9%20--%203.13-black?color=FFE873\u0026labelColor=3776AB)\n[![License](https://img.shields.io/github/license/tonkeeper/pytonapi)](https://github.com/tonkeeper/pytonapi/blob/main/LICENSE)\n\n![Image](https://telegra.ph//file/f88bcf9051073973edbd6.jpg)\n\n![Downloads](https://pepy.tech/badge/pytonapi)\n![Downloads](https://pepy.tech/badge/pytonapi/month)\n![Downloads](https://pepy.tech/badge/pytonapi/week)\n\nPython SDK for [tonapi.io](https://tonapi.io).\\\nInformation about the API can be found in the  [documentation](https://docs.tonconsole.com/tonapi/api-v2).\\\nTo use the API **you need an API key**, you can get it here [tonconsole.com](https://tonconsole.com/).\n\n\u003cblockquote\u003e\nFor creating wallets, transferring TON, Jetton, NFTs, and other operations, recommend using \u003ca href=\"https://github.com/nessshon/tonutils\"\u003etonutils\u003c/a\u003e in combination with \u003ccode\u003eTonapiClient\u003c/code\u003e. For more information, refer to the library documentation.\n\u003c/blockquote\u003e\n\n## Usage\n\n### Installation\n\n```bash\npip install pytonapi\n```\n\n### Examples\n\n\n```python\nfrom pytonapi import AsyncTonapi\n\n\n# Declare an asynchronous function for using await\nasync def main():\n    # Create a new Tonapi object with the provided API key\n    tonapi = AsyncTonapi(api_key=\"Your API key\")\n\n    # Specify the account ID\n    account_id = \"EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess\"  # noqa\n\n    # Retrieve account information asynchronously\n    account = await tonapi.accounts.get_info(account_id=account_id)\n\n    # Print account details\n    print(f\"Account Address (raw): {account.address.to_raw()}\")\n    print(f\"Account Address (userfriendly): {account.address.to_userfriendly(is_bounceable=True)}\")\n    print(f\"Account Balance (nanoton): {account.balance.to_nano()}\")\n    print(f\"Account Balance (amount): {account.balance.to_amount()}\")\n\n\nif __name__ == '__main__':\n    import asyncio\n\n    # Run the asynchronous function\n    asyncio.run(main())\n\n```\n\n* **Additional examples** can be found [examples](https://github.com/tonkeeper/pytonapi/tree/main/examples) folder.\n\n## Donations\n\n**TON** - `UQCDrgGaI6gWK-qlyw69xWZosurGxrpRgIgSkVsgahUtxZR0`\n\n**USDT** (TRC-20) - `TDHMG7JRkmJBDD1qd4bNhdfoy2uzVd8ixA`\n\n## Contribution\n\nWe welcome your contributions! If you have ideas for improvement or have identified a bug, please create an issue or\nsubmit a pull request.\n\n## Support\n\nSupported by  [TONAPI](https://tonapi.io) and [TON Society](https://github.com/ton-society/grants-and-bounties) (Grants\nand Bounties program).\n\n## License\n\nThis repository is distributed under the [MIT License](https://github.com/tonkeeper/pytonapi/blob/main/LICENSE). Feel\nfree to use, modify, and distribute the code in accordance\nwith the terms of the license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonkeeper%2Fpytonapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonkeeper%2Fpytonapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonkeeper%2Fpytonapi/lists"}