Prerequisites: make sure git, curl, nano, docker, and docker compose plugin are installed. If you don't know how to install docker: https://docs.docker.com/engine/install/ubuntu/
The commands below assume you added your current user in the docker group as per instructions here: https://docs.docker.com/engine/install/linux-postinstall/
sudo usermod -aG docker $USERClone this repo:
git clone https://github.com/reqlez/tn-ergonode-docker.git && cd tn-ergonode-dockerCreate Docker network / volume:
docker network create tn-ergo-nodedocker volume create tn_ergo_nodeStart node container temporarily to generate API Key Hash:
docker compose up -dGenerate an 'apiKeyHash' for node, ex:
curl -X POST "http://localhost:9052/utils/hash/blake2b" -H "Content-Type: application/json" -d "\"YOUR_API_KEY\""Stop node container:
docker compose downUncomment / set settings like apiKeyHash:
nano config/ergo.conf
Start node container and initialize wallet:
docker compose up -dcurl -X POST "http://localhost:9052/wallet/init" -H "api_key: YOUR_API_KEY" -H "Content-Type: application/json" -d "{\"pass\":\"YOUR_WALLET_PASS\"}"Get wallet address so you can use it for future reference:
curl -X GET "http://localhost:9052/wallet/addresses" -H "api_key: YOUR_API_KEY"Visit https://tn-faucet.ergohost.io and get some test ERG for your wallet address.
Wait for node to sync, you can monitor progress under: http://ip.of.your.node:9052/panel
You can also check / use node API under: http://ip.of.your.node:9052/swagger
For troubleshooting, check logs via:
docker compose logs -f