Skip to content

reqlez/tn-ergonode-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Easy Testnet Ergo Node Setup

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 $USER

Clone this repo:

git clone https://github.com/reqlez/tn-ergonode-docker.git && cd tn-ergonode-docker

Create Docker network / volume:

docker network create tn-ergo-node
docker volume create tn_ergo_node

Start node container temporarily to generate API Key Hash:

docker compose up -d

Generate 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 down

Uncomment / set settings like apiKeyHash:

  • nano config/ergo.conf

Start node container and initialize wallet:

docker compose up -d
curl -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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors