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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pactus_jsonrpc-1.12.0.tar.gz
  • Upload date:
  • Size: 4.2 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.12.0.tar.gz
Algorithm Hash digest
SHA256 1c34db178db953e5118cea5f8cd57427cc6a1e460382229c954b7bbd2d0a91ab
MD5 1c31bc698936948722c415d8cb57544c
BLAKE2b-256 adc0d1c390ba56721940e1ab895ff2e04b4787cfaf9fdd8b79a1fe7deb2a9a23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pactus_jsonrpc-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4f180cf2c450cefc5083517ddcd77be1c38fe5cc3dee58dc8670634c94d817
MD5 8f3da51671f647647e79aec879877304
BLAKE2b-256 ef31119b7034ce5bd7a2710570394c44b015453b1584501686e04ca707cd11df

See more details on using hashes here.

Provenance

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