https://github.com/nanspro/PyRaiden
A client library to interact with raiden network (an off-chain scaling solution using state channels) written in python
https://github.com/nanspro/PyRaiden
Last synced: about 1 year ago
JSON representation
A client library to interact with raiden network (an off-chain scaling solution using state channels) written in python
- Host: GitHub
- URL: https://github.com/nanspro/PyRaiden
- Owner: nanspro
- License: mit
- Created: 2019-07-09T18:17:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:37:46.000Z (about 3 years ago)
- Last Synced: 2024-07-31T20:27:09.554Z (almost 2 years ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-raiden-old - PyRaiden - A client library to interact with Raiden Network written in python (⚡ Developer Resources / Tools)
- awesome-raiden - PyRaiden - A client library to interact with Raiden Network written in python (Developer Resources / 🛠️ Hacks and More Tools for Devs)
README
# PyRaiden
[](https://travis-ci.org/nanspro/PyRaiden/)
A client library to interact with raiden network (an off-chain scaling solution using state channels) written in python.
## Prerequisites
You should have raiden running on a node with your ethereum address and you should've access to the rpc endpoint for the
node.
``` python
# Create a raiden client like this
client = Client('http://localhost:5001/', 'v1')
# Get address
response = client.get_address()
your_address = response['our_address']
# Get channels for a particular registered token
tokenChannels = client.get_channels_for_token('0x380EB4e2C14ee155DBb55Ee1670B3B2f5b34eC85')
```
**Demo Usage**
``` python
cd raiden
# Get responses for all the methods possible
python3 demo.py
```
**Testing**
```python
cd raiden
python3 test.py
```
You can view `raiden/cleint.py` to see all different methods of class `Client`