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.1.tar.gz
(13.8 kB
view hashes)
Built Distribution
toncenter-0.0.1-py3-none-any.whl
(13.7 kB
view hashes)
Close
Hashes for toncenter-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7a56c94a27fe5ea57cddc0c7f4c3907920e349cbf5802cc64383eed9b966ad |
|
MD5 | 8534bf4a79e24c7eff8a785c63e94663 |
|
BLAKE2b-256 | 9a849f824a29325a3005f0909bc624f80bb6bef4e0a89cc4ca956d09c270b187 |