Python SDK for interacting with QLC node
Project description
qlc-python-SDK
Examples
Create 3 random accounts
from pyqlc.client import Client
def example():
qlc = Client("http://127.0.0.1:9735")
accounts = qlc.Account.newAccounts(3)
for idx, addr in enumerate(accounts):
print(f"{idx} ==> {addr}")
example()
"""
Output:
0 ==> {
'address': 'qlc_1i5emtz19w75cnzpcm3gn96smp4se8s5cn8potw7si456tapz3npemjwwami',
'privKey': b'cc8f2fb68202526ebab7a968fa81883c29785dc4599e46126f422b11f4402f3f406c9ebe03f0a3553f654c2ea1c999d85961b23550d6aeb85cc04326916f8696',
'pubKey': b'406c9ebe03f0a3553f654c2ea1c999d85961b23550d6aeb85cc04326916f8696',
'seed': '7e6cbeb02e3247ae82fd0f0eb5030ed857c516f5fa4bba513ede65dffa863d31'
}
1 ==> {
'address': 'qlc_3duidxc7cuizuoj8gx7crpykbibweqe9kpc9fsgohz6arfzowoki5ip7ddcw',
'privKey': b'ba9f8339fc6b0950d5b3afa3aaaad1518d32d098aa3f2715e1247acf45a72569af705f54556e1fdd626774aac5bd24c13c65d87959476e5d57fc88c37f5e5650',
'pubKey': b'af705f54556e1fdd626774aac5bd24c13c65d87959476e5d57fc88c37f5e5650',
'seed': '256d61e9a26f1209e62daff747e2caa959211324c1ffee04df3bbdeaa5c197d4'
}
2 ==> {
'address': 'qlc_3pe9cd67cbhtjgh67g79qdi9o8poto9jnyznsk5ofb6u8xaf1urnytsno345',
'privKey': b'5e8d3b00cef26f73660144287dbe0c705825ba780fcba1828d41dd423cd5dc7ad98752c85525fa8b9e42b8a7bae07a9ad5d54f1a7bf4cc8756a49b3750d06f14',
'pubKey': b'd98752c85525fa8b9e42b8a7bae07a9ad5d54f1a7bf4cc8756a49b3750d06f14',
'seed': 'd20d72e3fb07b4936d8eee49cb23cf4e796fca566af07eaaf6c8578ab257103b'
}
"""
Requirements
$ pip3 install -r requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyqlc-0.0.2.tar.gz
(37.0 kB
view details)
Built Distribution
File details
Details for the file pyqlc-0.0.2.tar.gz
.
File metadata
- Download URL: pyqlc-0.0.2.tar.gz
- Upload date:
- Size: 37.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1461c2cdbd4c83838ec4e8b15e5cc8e75747e525c4a2f64bc1ef733066af914c
|
|
MD5 |
c8a924e47bd368d225f25ff424cc5149
|
|
BLAKE2b-256 |
944e5594b6d91d853d37a30a1becf6a60b45acc0cab1200f860b34913be169af
|
File details
Details for the file pyqlc-0.0.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pyqlc-0.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 87.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e65ffb2aa451924c7975f159e9ba5d375dce364ff5c2603382a7ffc021e3f39e
|
|
MD5 |
4bb01d103af3471ea5d35662245bc823
|
|
BLAKE2b-256 |
842585cf9486985d7cef2c6fc2f88965de1761a5d943559d36c3882ddd9712a6
|