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.11.1.tar.gz (4.1 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.11.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pactus_jsonrpc-1.11.1.tar.gz
Algorithm Hash digest
SHA256 e912ae8cd6c766ebfb42799b5361ab60b91a22c94d690dc4a14ad2cceeab14bb
MD5 0e7fb3fcd5dc3a6d98a431188f3b071e
BLAKE2b-256 f3d0ff56402e1c6040a61381220b1b2bf90968ae4e1bc486bcd7d6912e5c6aaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_jsonrpc-1.11.1.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.11.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pactus_jsonrpc-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f40210dcd462023c3e9dd5ab9890e81ff33fe411ef67996809d364e4a3b3ef5b
MD5 ea3d949c7d9f6fe7cc91a56be7ad3986
BLAKE2b-256 9d7a3080ac5abbb24744535cbfbc28798b5a86fd623851cf2b5c1ad8e64359ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_jsonrpc-1.11.1-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