-
Install Docker Desktop
-
Install Algorand sandbox and add this project folder as bind volume in sandbox
docker-compose.yml
under keyservices.algod
:volumes: - type: bind source: <path> target: /data
-
Start sandbox:
$ ./sandbox up
-
Install Python virtual environment (Python 3.10+) in project folder:
$ python -m venv venv $ source ./venv/Scripts/activate # Windows $ source ./venv/bin/activate # Linux
-
Use Python interpreter:
./venv/Scripts/python.exe
VSCode:Python: Select Interpreter
-
Install dependencies:
$ pip install -r requirements.txt
-
Set PythonPath :
$ export PYTHONPATH=.
-
Run Deployment Test:
$ python python_sdk/test_methods.py
When finished, the sandbox can be stopped with ./sandbox down
These are general calls made to your sandboxed algorand blockchain using the goal
cli. Please enter the sandbox to execute these commands.
goal app read --global --app-id $APP_ID --guess-format
goal app info --app-id $APP_ID
goal account info -a $ACCOUNT_APP
goal app read --local --from $ACCOUNT_2 --app-id $APP_ID