Skip to main content

raiden api client

The raiden api client wraps the API of raiden. It simplifies the usage of raiden's api to a few lines.

Installation

Use the package manager pip to install raiden API client.

pip install raiden_api_client

Usage

import raiden_api_client

raiden = raiden_api_client.RaidenAPIWrapper(ip="localhost", port=8545) # Parity running at localhost:8545

raiden.transfer(
   partner = "0x0000000000000000000000000000000000000000",
   amount = 1,
) # Transfering 1 Token to 0x00

Further examples can be found in the example folder.

Available Methods

- mint_tokens(receiver, token, amount) -> AttrDict
- register_token(token) -> AttrDict
- open_channel(partner, token, deposit, settle_timeout=500) -> AttrDict
- transfer(partner, token, amount, identifier=None ) -> AttrDict
- fund_channel(partner, token, deposit) -> AttrDict
- close_channel(partner, token) -> AttrDict
- leave_token_network(token) -> List[str]

- get_channels(token=None, partner=None) -> List[AttrDict]
- get_payments(partner=None, token=None) -> List[AttrDict]
- get_token_network(token=None) -> AttrDict
- get_raiden_version() -> AttrDict
- get_address() -> AttrDict
- get_pending_transfer(token=None, partner=None) -> List[AttrDict]
- get_connections() -> AttrDict
- get_node_status() -> AttrDict

Checkout the raiden api docs for further information about the returned objects.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for raiden-api-client 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raiden-api-client 1.1.1
File Size Uploaded Provenance Actions
raiden-api-client-1.1.1.tar.gz 6.6 kB Without provenance Details for raiden-api-client-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raiden-api-client 1.1.1
File Interpreter ABI Platform Actions
raiden_api_client-1.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for raiden_api_client-1.1.1-py2.py3-none-any.whl

Total release size: 12.5 kB

Release files / raiden-api-client-1.1.1.tar.gz

Download URL raiden-api-client-1.1.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6f7761957dbddfe8fbc1f3802705051264dd6fa0f4df3b68897115630a361527
BLAKE2b-256 checksum
How to use checksums
ae2c23642d5b14a5c81c3193af038a78a2fb81d964428e19a04920d0d599fbdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.10

Release files / raiden_api_client-1.1.1-py2.py3-none-any.whl

Download URL raiden_api_client-1.1.1-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7192d0bad2bb8813362ed0da71281ce3be4ab36039827797ca615e0569c32c8d
BLAKE2b-256 checksum
How to use checksums
0afa33392ad3843323c24ce30b47fb8fb59b4afccfedb959fd638413fe3549b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.10

Security for raiden-api-client 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page