chia-py-rpc


Namechia-py-rpc JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryChia-Py-RPC is a Python library that provides a convenient way to interact with the Chia blockchain using the Chia RPC (Remote Procedure Call) protocol.
upload_time2023-11-01 15:57:43
maintainer
docs_urlNone
author
requires_python>=3.11
license
keywords
VCS
bugtrack_url
requirements Requests urllib3
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Chia-Py-RPC

Chia-Py-RPC is a Python library that provides a convenient way to interact with the Chia blockchain using the Chia RPC (Remote Procedure Call) protocol. It allows you to send transactions, check balances, and perform other Chia-related operations programmatically from Python.

## Features

- Send transactions to multiple recipients in a single transaction
- Check wallet balances and transaction history
- Get information about Chia blocks, coins, and transactions
- Create and manage Chia wallets
- Simple and easy-to-use
- Plus every RPC method avaliable in Chia Client 1.7.0 or previous.

## Installation

To install Chia-Py-RPC, you can use `pip`, the Python package manager. Open a terminal and run the following command:

```bash
pip install chia-py-rpc
```

## Usage
Here's an example of how you can use Chia-Py-RPC to send transactions to multiple recipients in a single transaction:

```
from chia_py_rpc.wallet import Wallet

# Create an instance of Wallet
chia_wallet = Wallet()

# Specify the wallet ID, additions (recipients), fee, and optional parameters
wallet_id = 1
additions = [
    {'amount': 1000000000000, 'puzzle_hash': '0x...'},  # Recipient 1
    {'amount': 500000000000, 'puzzle_hash': '0x...'},  # Recipient 2
]
fee = 0.00001

# Call the send_transaction_multi method to send the transaction
result = chia_wallet.send_transaction_multi(wallet_id, additions, fee)

# Parse the result and handle the transaction ID and status
transaction_id = result['transaction_id']
status = result['status']
print(f"Transaction ID: {transaction_id}")
print(f"Status: {status}")
```

For more examples and documentation, please refer to the official documentation.

## Contributing
If you would like to contribute to Chia-Py-RPC, please open an issue or submit a pull request on GitHub. We welcome any contributions, including bug fixes, feature enhancements, and documentation improvements.

## License
Chia-Py-RPC is open-source software licensed under the MIT License.

## Acknowledgements
Chia-Py-RPC is not affilated with the Chia Network in any way and it purely to provide a simple method of utlising Chia RPC in python.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "chia-py-rpc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "L4bb3rs <king@the300.net>",
    "download_url": "https://files.pythonhosted.org/packages/0f/c8/9268d4973d4a0b7f2f18ecb98db6e94fc853429ffb1a2fc2cb06ca5e8c80/chia_py_rpc-0.1.1.tar.gz",
    "platform": null,
    "description": "# Chia-Py-RPC\n\nChia-Py-RPC is a Python library that provides a convenient way to interact with the Chia blockchain using the Chia RPC (Remote Procedure Call) protocol. It allows you to send transactions, check balances, and perform other Chia-related operations programmatically from Python.\n\n## Features\n\n- Send transactions to multiple recipients in a single transaction\n- Check wallet balances and transaction history\n- Get information about Chia blocks, coins, and transactions\n- Create and manage Chia wallets\n- Simple and easy-to-use\n- Plus every RPC method avaliable in Chia Client 1.7.0 or previous.\n\n## Installation\n\nTo install Chia-Py-RPC, you can use `pip`, the Python package manager. Open a terminal and run the following command:\n\n```bash\npip install chia-py-rpc\n```\n\n## Usage\nHere's an example of how you can use Chia-Py-RPC to send transactions to multiple recipients in a single transaction:\n\n```\nfrom chia_py_rpc.wallet import Wallet\n\n# Create an instance of Wallet\nchia_wallet = Wallet()\n\n# Specify the wallet ID, additions (recipients), fee, and optional parameters\nwallet_id = 1\nadditions = [\n    {'amount': 1000000000000, 'puzzle_hash': '0x...'},  # Recipient 1\n    {'amount': 500000000000, 'puzzle_hash': '0x...'},  # Recipient 2\n]\nfee = 0.00001\n\n# Call the send_transaction_multi method to send the transaction\nresult = chia_wallet.send_transaction_multi(wallet_id, additions, fee)\n\n# Parse the result and handle the transaction ID and status\ntransaction_id = result['transaction_id']\nstatus = result['status']\nprint(f\"Transaction ID: {transaction_id}\")\nprint(f\"Status: {status}\")\n```\n\nFor more examples and documentation, please refer to the official documentation.\n\n## Contributing\nIf you would like to contribute to Chia-Py-RPC, please open an issue or submit a pull request on GitHub. We welcome any contributions, including bug fixes, feature enhancements, and documentation improvements.\n\n## License\nChia-Py-RPC is open-source software licensed under the MIT License.\n\n## Acknowledgements\nChia-Py-RPC is not affilated with the Chia Network in any way and it purely to provide a simple method of utlising Chia RPC in python.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Chia-Py-RPC is a Python library that provides a convenient way to interact with the Chia blockchain using the Chia RPC (Remote Procedure Call) protocol.",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/L4bb3rs/Chia-Py-RPC",
        "Homepage": "https://github.com/L4bb3rs/Chia-Py-RPC"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2a6597d5410de2d122992a67f05cba965c8123faed3aa21d47ec6137aaf5078",
                "md5": "bd3ff29c1daed508cf9450f118f8fb80",
                "sha256": "964077ea28d152cb7dba070dfc04088ef94ba6c2e899e6d9e87ad9d7c2d26e26"
            },
            "downloads": -1,
            "filename": "chia_py_rpc-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bd3ff29c1daed508cf9450f118f8fb80",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 14120,
            "upload_time": "2023-11-01T15:57:41",
            "upload_time_iso_8601": "2023-11-01T15:57:41.760207Z",
            "url": "https://files.pythonhosted.org/packages/c2/a6/597d5410de2d122992a67f05cba965c8123faed3aa21d47ec6137aaf5078/chia_py_rpc-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0fc89268d4973d4a0b7f2f18ecb98db6e94fc853429ffb1a2fc2cb06ca5e8c80",
                "md5": "08837d217c83a2a2396ea2435e46503a",
                "sha256": "9afdaa8779475a886092f413956bc8d69493054e79a28a186215b88ae3cf95c8"
            },
            "downloads": -1,
            "filename": "chia_py_rpc-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "08837d217c83a2a2396ea2435e46503a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 16671,
            "upload_time": "2023-11-01T15:57:43",
            "upload_time_iso_8601": "2023-11-01T15:57:43.112459Z",
            "url": "https://files.pythonhosted.org/packages/0f/c8/9268d4973d4a0b7f2f18ecb98db6e94fc853429ffb1a2fc2cb06ca5e8c80/chia_py_rpc-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-01 15:57:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "L4bb3rs",
    "github_project": "Chia-Py-RPC",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.0.7"
                ]
            ]
        }
    ],
    "lcname": "chia-py-rpc"
}
        
Elapsed time: 0.23848s