semvec/pypi-packages huggingface dataset:
aerium-jsonrpc 0.2.0
Python client for interacting with the Aerium blockchain via JSON-RPC
License: MIT
Requires Python: >=3.6
Keywords: aerium, blockchain, json-rpc

# aerium-jsonrpc

Python client for interacting with the [Aerium](https://aerium.network) blockchain via JSON-RPC.

## Installation

```bash
pip install aerium-jsonrpc
```

## Usage

```python
import asyncio
from aerium_jsonrpc.client import AeriumOpenRPCClient


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

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


if __name__ == "__main__":
    asyncio.run(main())
```
aerium-grpc 0.2.0
Python client for interacting with the Aerium blockchain via gRPC
License: MIT
Requires Python: >=3.6
Keywords: aerium, blockchain, grpc

# aerium-grpc

Python client for interacting with the [Aerium](https://aerium.network) blockchain via gRPC.

## Installation

```bash
pip install aerium-grpc
```

## Usage

```python
import asyncio
import grpc
from aerium_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())
```