【文件属性】:
文件名称:neo-python-rpc:适用于NEO区块链的Python RPC客户端
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-14 13:11:00
Python
新python-rpc
适用于NEO区块链的轻量级Python RPC客户端
免费软件:MIT许可证
文档: : 。
安装
pip install neo-python-rpc
基本用法
获取区块链的高度
>>> from neorpc.Client import RPCClient
>>> client = RPCClient()
>>> blockchain_height = client.get_height()
>>> blockchain_height
769332
得到一个块
>>> block = client.get_block(123456)
>>> block
{
"nextconsensus": "AdyQbbn6ENjqWDa5JNYMwN3ikNcA4JeZdk",
"size": 686,
"previousblockhash
【文件预览】:
neo-python-rpc-master
----setup.py(2KB)
----.gitignore(94B)
----Makefile(2KB)
----.travis.yml(475B)
----MANIFEST.in(262B)
----requirements_dev.txt(524B)
----LICENSE(1KB)
----setup.cfg(346B)
----README.md(4KB)
----README.rst(913B)
----tests()
--------__init__.py(72B)
--------test_client.py(11KB)
----neorpc()
--------__init__.py(22B)
--------Client.py(23KB)
--------Settings.py(1KB)
----.coveragerc(54B)
----AUTHORS.rst(158B)
----CONTRIBUTING.rst(3KB)
----docs()
--------.gitignore(61B)
--------Makefile(7KB)
--------index.rst(293B)
--------conf.py(8KB)
--------authors.rst(28B)
--------installation.rst(1KB)
--------make.bat(6KB)
--------readme.rst(27B)
--------usage.rst(3KB)
--------contributing.rst(33B)