# pactus-jsonrpc
Python client for interacting with the [Pactus](https://pactus.org) blockchain via JSON-RPC.
## Installation
```bash
pip install pactus-jsonrpc
```
## Usage
```python
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())
```
Raw data
{
"_id": null,
"home_page": "https://pactus.org",
"name": "pactus-jsonrpc",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "pactus, blockchain, json-rpc",
"author": "Pactus Development Team",
"author_email": "info@pactus.org",
"download_url": "https://files.pythonhosted.org/packages/59/ac/b7f5330146b0f7bcac29fc0c249c694d68a470548fea5557dc07e14d5f70/pactus_jsonrpc-1.10.1.tar.gz",
"platform": null,
"description": "# pactus-jsonrpc\n\nPython client for interacting with the [Pactus](https://pactus.org) blockchain via JSON-RPC.\n\n## Installation\n\n```bash\npip install pactus-jsonrpc\n```\n\n## Usage\n\n```python\nimport asyncio\nfrom pactus_jsonrpc.client import PactusOpenRPCClient\n\n\nasync def main():\n client = PactusOpenRPCClient(\n headers={},\n client_url=\"http://127.0.0.1:8545\"\n )\n\n blockchain_info = await client.pactus.blockchain.get_blockchain_info()\n print(blockchain_info)\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python client for interacting with the Pactus blockchain via JSON-RPC",
"version": "1.10.1",
"project_urls": {
"Homepage": "https://pactus.org"
},
"split_keywords": [
"pactus",
" blockchain",
" json-rpc"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2b594e57035a01f88f7dfb60eb2c2ebf05155ce356f5c012de31f4bee3f40352",
"md5": "7c64bdaa15b86a450978779937b34c6b",
"sha256": "7ae50c9e5c47a7896b423a46d222e27308aec85bbb40c3b3de0ae193ef18ef57"
},
"downloads": -1,
"filename": "pactus_jsonrpc-1.10.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7c64bdaa15b86a450978779937b34c6b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4617,
"upload_time": "2025-10-30T17:23:56",
"upload_time_iso_8601": "2025-10-30T17:23:56.375139Z",
"url": "https://files.pythonhosted.org/packages/2b/59/4e57035a01f88f7dfb60eb2c2ebf05155ce356f5c012de31f4bee3f40352/pactus_jsonrpc-1.10.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "59acb7f5330146b0f7bcac29fc0c249c694d68a470548fea5557dc07e14d5f70",
"md5": "426cdda8f2cc6774b4bdb4d26b9d3910",
"sha256": "c36ad639ef95e57a752716516a2098f61360798157301393ac36df938ebd8648"
},
"downloads": -1,
"filename": "pactus_jsonrpc-1.10.1.tar.gz",
"has_sig": false,
"md5_digest": "426cdda8f2cc6774b4bdb4d26b9d3910",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4045,
"upload_time": "2025-10-30T17:23:57",
"upload_time_iso_8601": "2025-10-30T17:23:57.394696Z",
"url": "https://files.pythonhosted.org/packages/59/ac/b7f5330146b0f7bcac29fc0c249c694d68a470548fea5557dc07e14d5f70/pactus_jsonrpc-1.10.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-30 17:23:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pactus-jsonrpc"
}