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.
Some examples can be found at the following locations:
The examples include scenarios such as:
- sending transactions one-by-one
- sending transactions in bulk
- deploying and upgrading Smart Contracts
- interacting with Smart Contracts
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 deactivate
is a symlink that points to~/elrondsdk/erdpy-venv/bin/activate.