Skip to main content

pactus-grpc

Python client for interacting with the Pactus blockchain via gRPC.

Installation

pip install pactus-grpc

Usage

import asyncio
import grpc
from pactus_grpc import blockchain_pb2_grpc, blockchain_pb2, network_pb2_grpc, network_pb2


async def main():
    channel = grpc.aio.insecure_channel("127.0.0.1:50051")
    blockchain_stub = blockchain_pb2_grpc.BlockchainStub(channel)
    blockchain_request = blockchain_pb2.GetBlockchainInfoRequest()
    blockchain_response = await blockchain_stub.GetBlockchainInfo(blockchain_request)
    print(blockchain_response)

    await channel.close()


if __name__ == "__main__":
    asyncio.run(main())

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pactus_grpc-1.16.0.tar.gz (29.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_grpc-1.16.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file pactus_grpc-1.16.0.tar.gz.

File metadata

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

File hashes

Hashes for pactus_grpc-1.16.0.tar.gz
Algorithm Hash digest
SHA256 fd35d923e661827bd8f738d38cafdc46d647815227424d91d4e63be280408234
MD5 fd0bbf71f46d91466c6eeb659e377f41
BLAKE2b-256 695cb25f7bbfb26ae370592c417732dba6518b7dea3b5854ca023ea0f5d2023b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_grpc-1.16.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_grpc-1.16.0-py3-none-any.whl.

File metadata

  • Download URL: pactus_grpc-1.16.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pactus_grpc-1.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98b20755b46366f44b5f0087294f85339960885e2f44a5e3c5111842785af707
MD5 3841853b70c315614a0da6d8a800bdb6
BLAKE2b-256 7024732ebe86bfb6c2b0d65e269162bc922339bd70833a6daf5786ecc7410344

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

1.16.0 This release

2 files

1.15.6

2 files

1.15.5

2 files

1.15.3

2 files

1.15.2

2 files

1.15.1

2 files

1.15.0

2 files

1.14.0

2 files

1.13.0

2 files

1.12.0

2 files

1.11.1

2 files

1.11.0

2 files

1.10.1

2 files

1.10.0

2 files

1.9.4

2 files

1.9.3

2 files

1.9.1

2 files

1.9.0

2 files

1.8.0

2 files

1.7.4

2 files

1.7.3

1 file

1.7.2

2 files

Supported by

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