Last updated:
0 purchases
pyrinnetwork 0.1.9
Pyrin SDK Python Bindings
SDK Documentation
Built using PyO3
Installation
pip install pyrin-network
Running node with wRPC
pyrin --utxoindex --rpclisten-borsh
Usage
import pyrin
rpc = pyrin.RPC()
await rpc.connect()
balance = await rpc.get_balance_by_address("pyrin:qzn54t6vpasykvudztupcpwn2gelxf8y9p84szksr73me39mzf69uaalnymtx")
print("balance:", balance)
import pyrin
wallet = pyrin.Wallet()
r = await wallet.connect()
account = await wallet.create_account()
Local Development
```bash ``
Dependencies
pip install maturin
Build
cargo build
maturin build
pip install <compiled whl file>
Development
conda create -n sdk-develop python=3.8
conda activate sdk-develop
cd sdk/python
maturin develop
python3 -m venv ~/sdk_develop
source ~/sdk_develop/bin/activate
pip install maturin
python3 -m maturin develop
Test
python -m unittest tests/test_wallet.py
python -m unittest tests/test_bip32.py
python -m unittest tests/test_rpc.py
python -m unittest tests/test_lib.py
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.