Creates a Algorand private network including Algod and Indexer REST APIs.
This work is based on the original Algorand Sandbox, but modified so that it runs directly under Docker/Docker-Compose under a Windows terminal.
To use this on Windows you need Docker installed under WSL2.
This Sandbox is also deployable to a Kubernetes cluster, allowing your team to host their Sandbox(s) in the cloud.
Clone the repo:
meta git clone [email protected]:hone-labs/algorand-sandbox.git- Algo-proxy: http://localhost:4000
- Algod REST API: http://localhost:4001
- Indexer REST API: http://localhost:8980
To bring up all services:
docker compose up --buildDoing a full build takes quite a while because it fetches fresh code code from the Algorand code repositories.
You can omit --build to start quickly from cached images:
docker compose upTo shutdown:
docker compose downOpen requests (.http) files in ./api-tester.
Have VS Code REST Client installed.
Run individual requests to test the local sandbox.
docker exec -it algorand-sandbox-algod /bin/bashTo work with shared files:
cd /sharedOnce you have a shell into algod you can run goals commands against it, like:
goal account listBy default the Sandbox starts in "dev mode" which is way faster than "normal mode" because it creates block per transaction.
Here's how to change to "normal mode":
Open docker-compose.yml.
Change these lines:
GENESIS_FILE: "/tmp/images/algod/dev-genesis.json"
TEMPLATE: "/tmp/images/algod/dev-template.json"
To use the normal template:
GENESIS_FILE: "/tmp/images/algod/genesis.json"
TEMPLATE: "/tmp/images/algod/template.json"
Restart:
docker compose down
docker compose up
By default the Sandbox starts with a "Faucet account" with a huge amount of Algos (courtesy of a custom genesis file).
You can use the faucet to fund whatever test accounts you care to create.
- Address: SMG6FYYEOJV76DABQHS2TMNLQBZWXXVAUVTSL2PT4QCM43AMRJ4NYBHFKU
- Mnemonic: blind fan example frog garage repair unable fuel gorilla key inch chaos rather segment enter eager emerge coffee reveal crime fence harbor suspect absent barely