Python bindings for the JSON RPC interface of the Nerva cryptocurrency.
- Python 3.8+
uv
(for development only)
To install current latest release you can use following command:
pip install nerva-py
To install the latest development version you can use following command:
uv add git+https://github.com/Sn1F3rt/nerva-py.git --branch main
Developers please refer to the docstrings in the code for more information. Full API reference will be available soon.
Here is a simple example to get you started:
import asyncio
from nerva.daemon import Daemon
async def main():
daemon = Daemon(
host="localhost",
port=17566,
ssl=False,
username="rpcuser", # omit if daemon was not started with the rpc-login flag
password="rpcpassword" # omit if daemon was not started with the rpc-login flag
)
print(await daemon.get_info())
asyncio.run(main())
Copyright © 2024 Sayan "Sn1F3rt" Bhattacharyya