Installation Setup

# System requirements
Operating System : Ubuntu 22.04
CPU: Minimum of 1/2 core.
Memory: 2 to 4 GB.
Storage: SSD or NVMe with at least 5GB of space.

Clone repository

cd $HOME
git clone https://github.com/allora-network/basic-coin-prediction-node
cd basic-coin-prediction-node

Edit .env file

nano .env

Copy & Paste Inside

TOKEN=ETH
TRAINING_DAYS=30
TIMEFRAME=4h
MODEL=SVR
REGION=US
DATA_PROVIDER=Coingecko
CG_API_KEY=GETYOURAPIFROMCOINGECKO

Edit config.json file

 nano config.json

Copy & Paste Inside

Change WalletName and Seedphrase

{
    "wallet": {
        "addressKeyName": "WalletName",
        "addressRestoreMnemonic": "SeedPhrase",
        "alloraHomeDir": "",
        "gas": "auto",
        "gasAdjustment": 1.2,
        "gasPrices": "10",
        "gasPriceUpdateInterval": 60,
        "maxFees": 25000000,
        "nodeRpc": "https://allora-rpc.testnet.allora.network",
        "maxRetries": 5,
        "retryDelay": 3,
        "accountSequenceRetryDelay": 5,
        "submitTx": true,
        "blockDurationEstimated": 10,
        "windowCorrectionFactor": 0.8
    },
    "worker": [
        {
            "topicId": 1,
            "inferenceEntrypointName": "apiAdapter",
            "loopSeconds": 2,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 2,
            "inferenceEntrypointName": "apiAdapter",
            "loopSeconds": 4,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 7,
            "inferenceEntrypointName": "apiAdapter",
            "loopSeconds": 6,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        }
    ]
}

  • edit docker-compose.yml file

run command
nano docker-compose.yml

Scroll down and edit the worker container image replace: image: alloranetwork/allora-offchain-node:v0.5.0 to 0.7.0


Export Variables

run command
chmod +x init.config
./init.config 

Deploy the Node

run command
docker compose pull
docker compose up --build -d

to check logs

run command
docker compose logs -f worker

Last updated