Shinevision / NanoPython

Python to NANO network API using websockets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NanoPython

Python to NANO network API using websockets.

Usage (Simple)

Put in a address you want to monitor in the nanoAddress field. The program will listen for RECEIVE payments. You can set it to listen to RECIEVE, SEND or even BOTH! Just change the logic after the websocket receive command after the while loop!

Usage (Class based)

To start just put your nano address in the Data.json file and run the main file. The script is structured using classes, getters and setters. If you like this method more use this script.

What do i need?

  1. Download the main.py file and the nodes.json file.
  2. Change address inside.
  3. Make sure you pip install the requirements.txt (or manually)
  4. ...
  5. Profit!

Requirements

  • Python libs:
    • asyncio
    • ssl
    • websockets
    • json

For full info. Look at the requirements.txt!

Nodes?

In the nodes.json file you will find some websocket nodes. You can add as many as you would like. It will automatically assign a random node on start.

Can i donate?

Of course! just use the default NANO address! nano_3ij45i1uzaqwe8bdkbg4bfehdn4duzewao8m3z5grhda33hzzuzfo8a9zsws QR Code

You can also use this to test if everything works :)

Credits

Class based script made by @azrael1221! Thanks a lot!

Questions?

Feel free to ask for help!

About

Python to NANO network API using websockets.


Languages

Language:Python 100.0%