Example Python 2/3 code for interfacing with the ECC API Server at https://github.com/rynobey/ECC-API
Two endpoints are requested:
/isAlive
/ec/add
This pattern may be followed for requesting any of the other ECC endpoints which may be needed.
- Follow the installation instructions of https://github.com/rynobey/ECC-API
- Follow the instructions to on https://pip.pypa.io/en/stable/installing to install Pip
- Python
requests
pip install requests
- Python 2pip3 install requests
- Python 3
- Ensure https://github.com/rynobey/ECC-API is running
git clone git@github.com:coeniebeyers/hashblock2018_3.git
cd hashblock2018_3
- Runing
ecc.py
python2 ecc.py
- Python 2python3 ecc.py
- Python 3