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'}
Donation
We are doing this in our free time. Please consider a donation if this helps! Thank you!
kaspa:qrlsm9tvmak6909pr9f35g6scapz5t689nhhls54sfxx5m46sn085ajhn9hn8
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.3.tar.gz
(20.2 kB
view details)
Built Distribution
File details
Details for the file kaspad_client-1.0.3.tar.gz
.
File metadata
- Download URL: kaspad_client-1.0.3.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a6f5c5e3a64eddf16dcfd526df83ac36136d7b17403e2eecb65b23dc55b0fa0 |
|
MD5 | dd7d7dfdfb3234a121d41c4db611e73b |
|
BLAKE2b-256 | ef09f370558ded2373e24eaf45795d6d5e7c7cdbfc2c0fa63946c044c01d871b |
Provenance
File details
Details for the file kaspad_client-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: kaspad_client-1.0.3-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07306e34c869fcea646de597f6c6964986fd978744812f3016242d6dd1e2c42b |
|
MD5 | 1687adc87887d9e909e71932c2ae2d10 |
|
BLAKE2b-256 | 478d5ae1722ef33a444d3b6d4ae0685e5f33be2aa9ecda25d2a573b46e31bec2 |