Toncenter API Python3 async wrap.
Project description
toncenter
Toncenter API Python3 async wrap.
Example
from toncenter.client import Client
import asyncio
async def main():
async with Client(open("main_api_token.txt").read()) as client:
info = await client.get_masterchain_info() # Gets masterchain info
print(info.last) # Prints last block
if __name__ == "__main__":
asyncio.run(main())
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
toncenter-0.0.2.tar.gz
(17.4 kB
view hashes)
Built Distribution
toncenter-0.0.2-py3-none-any.whl
(17.7 kB
view hashes)
Close
Hashes for toncenter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4afc2f9bef4419bcdf0f976435779b3a84526eded5842a97c324e31cff202a53 |
|
MD5 | aac70e7c343e903348a9de15d156493c |
|
BLAKE2b-256 | a0462735150eb968f2ed3b86b5ce0ea314fb356f31fd602d849cb9b28448e77d |