This is a simple gRPC client for a python application which communiactes with the Kaspa node called KASPAD.
Project description
This is a simple gRPC client for a python application which communiactes with the Kaspa node called KASPAD.
The module is based on asyncio, since the Kaspa BlockDAG is unbelievable fast and also needs the support of notifications.
Usage
import asyncio
from kaspad_client import KaspadClient
async def main():
kaspad_client = KaspadClient("127.0.0.1", 16110)
print(await kaspad_client.get_info())
asyncio.run(main())
returns
{'getInfoResponse': {'p2pId': 'd3d2af24-9ddd-4cf8-86eb-d1acd539857a', 'serverVersion': '0.13.4', 'isUtxoIndexed': True, 'isSynced': True, 'hasNotifyCommand': True, 'hasMessageId': True, 'mempoolSize': '0'}, 'id': '0'}
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
kaspad_client-1.0.1.tar.gz
(19.9 kB
view hashes)
Built Distribution
Close
Hashes for kaspad_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5163416e420465ec81c8c5935b66ec0e342ba4e8b5d17e53da8781e596a831 |
|
MD5 | ed5cfa1786235e9f746518a568b942db |
|
BLAKE2b-256 | 59ade0f931806f4c31aa7a80a6fce459d81b019e888cddc3422356e34ecaad37 |