Skip to main content

Python client for interacting with the Pactus blockchain via JSON-RPC

Project description

pactus-jsonrpc

Python client for interacting with the Pactus blockchain via JSON-RPC.

Installation

pip install pactus-jsonrpc

Usage

import asyncio
from pactus_jsonrpc.client import PactusOpenRPCClient


async def main():
    client = PactusOpenRPCClient(
        headers={},
        client_url="http://127.0.0.1:8545"
    )

    blockchain_info = await client.pactus.blockchain.get_blockchain_info()
    print(blockchain_info)


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

pactus_jsonrpc-1.15.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pactus_jsonrpc-1.15.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pactus_jsonrpc-1.15.0.tar.gz.

File metadata

  • Download URL: pactus_jsonrpc-1.15.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pactus_jsonrpc-1.15.0.tar.gz
Algorithm Hash digest
SHA256 5a0aaebea1813d9649bb75ea86edce21e3f03593cd2b23d3e46775a473dccc87
MD5 57b43e3cf8ead3d5aaa978d973d76e88
BLAKE2b-256 8fb589557c9257345e0ffcadcda50f17a1dca5f6f9aa39d0cac42795de740a26

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_jsonrpc-1.15.0.tar.gz:

Publisher: packager.yml on pactus-project/pactus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pactus_jsonrpc-1.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pactus_jsonrpc-1.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d79ef7caf6d02cf25fe086bfd9a7418c67b7b3601ed07a00c52ea7a313483fa6
MD5 c022c706ffdf2012628c683342ca4413
BLAKE2b-256 beb56cbdf8cd7fe889ef96734304df522838f692931172f9f937550243fc3b9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_jsonrpc-1.15.0-py3-none-any.whl:

Publisher: packager.yml on pactus-project/pactus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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