Installation Setup

You should buy VPS which is fulfilling all these 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
{
"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
nano docker-compose.yml
Export Variables
chmod +x init.config
./init.config
Deploy the Node
docker compose pull
docker compose up --build -d
to check logs
docker compose logs -f worker

Last updated