deepgully / pyzil Goto Github PK
View Code? Open in Web Editor NEWZilliqa Python API
License: MIT License
Zilliqa Python API
License: MIT License
The contract call function can't set the amount of ZILs sent to the contract. Is there any other function for that?
Hi.
Will this work with ZIL new adress format? zil1xfsrre5qgx0mqg...
thank you.
Based on https://apidocs.zilliqa.com/?python#dsblocklisting , the function GETDSBLOCKLISTING is not working.
pyzil.zilliqa.api.APIError: METHOD_NOT_FOUND: The method being requested is not available on this server
@deepgully I encountered errors when I checked out your repository.
Is it likely to be updated in the future?
I tried to pip install and to build from source, but I always get this output:
gcc -pthread -B /home/tom/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isrc/ -I/home/tom/miniconda3/include/python3.7m -c src/curveMath.c -o build/temp.linux-x86_64-3.7/src/curveMath.o -O2
In file included from src/curveMath.c:1:0:
src/curveMath.h:6:10: fatal error: gmp.h: No such file or directory
#include <gmp.h>
^~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/tom/miniconda3/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-iycz2l9f/fastecdsa/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-4hlgv__x/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-iycz2l9f/fastecdsa/
is it possible to utilize this resource without gmp? I tried building it from source but had other issues that I am not motivated to fix.
In a brand new virtualenv
/tmp $ virtualenv testpyzil
created virtual environment CPython3.9.9.final.0-64 in 688ms
creator CPython3Posix(dest=/private/tmp/testpyzil, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/revol/Library/Application Support/virtualenv)
added seed packages: pip==22.0.3, setuptools==60.6.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
/tmp $ source testpyzil/bin/activate
/tmp [testpyzil] $ pip freeze
# NO PACKAGE
/tmp [testpyzil] $ pip install pyzil
...
Collecting jsonrpcclient[requests]
Using cached jsonrpcclient-4.0.2-py3-none-any.whl <------ auto selected latest version
...
Successfully installed certifi-2021.10.8 charset-normalizer-2.0.12 eth-hash-0.3.2 fastecdsa-2.2.3 idna-3.3 jsonrpcclient-4.0.2 protobuf-3.19.4 pycryptodome-3.14.1 pyethash-0.1.27 pyzil-1.5.22 requests-2.27.1 urllib3-1.26.8
/tmp [testpyzil] $ python -c "from pyzil.zilliqa import chain"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/testpyzil/lib/python3.9/site-packages/pyzil/zilliqa/chain.py", line 21, in <module>
from pyzil.zilliqa.api import ZilliqaAPI, APIError
File "/private/tmp/testpyzil/lib/python3.9/site-packages/pyzil/zilliqa/api.py", line 15, in <module>
from jsonrpcclient.exceptions import JsonRpcClientError
ModuleNotFoundError: No module named 'jsonrpcclient.exceptions'
In the python file at tests/test_lowlevel_api.py, there is no script for creating a transaction.
Actually, I have created a local network of nodes and using pyzil client API as a means to have transactions between them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.