Skip to main content

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)

Uploaded Source

Built Distribution

kaspad_client-1.0.1-py3-none-any.whl (23.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page