Writing and running erdpy scripts

Since erdpy is not only a CLI tool, but also a Python SDK, one can write Python modules or scripts based on erdpy in order to interact with the Blockchain.


In order to run a script (Python module) that relies on erdpy, it is recommended to use the Python Virtual Environment set up by erdpy-up. Prior to the actual execution, the Virtual Environment has to be activated:

source erdpy-activate
python ./mission4.py

erdpy-activate is a symlink that points to ~/elrondsdk/erdpy-venv/bin/activate.