Node9X Service
  • πŸ„MAINNET
    • 🟒Kopi Protocol
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
      • ⛓️Upgrade (V11)
      • πŸͺ’Cosmovisor
      • πŸ›°οΈCommand
  • πŸš€Testnet
    • 🧬Explorer
    • 🟒Native
      • βš™οΈInstallation
    • 🟒XRPL EVM
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
      • πŸ•ΉοΈCommand
    • 🟒Pipe Network
      • Installation
      • Upgrade
    • 🟒Pell
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
      • ⛓️Upgrade (v1.1.1)
      • πŸ•ΉοΈCommand
    • 🟒Structs
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
      • πŸ•ΉοΈCommand
    • 🟒Prysm
      • πŸ›°οΈService & Snapshot
      • βš™οΈInstallation
      • πŸ’ΎCommand
    • 🟒Zenrock
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
      • ⛓️Upgrade ( v6.3.3)
      • πŸ•ΉοΈCosmovisor
      • πŸ›°οΈCommand
      • βš™οΈSidecar (βœ”οΈOracle)
        • πŸ”—Upgrade
    • 🟒Story Protocol
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation (Odyssey)
      • ⛓️Upgrade (v0.13.1)
        • πŸͺ’Upgrade (v0.13.0)
      • ⛓️Cosmovisor
      • πŸ›°οΈCommand
    • 🟒0G Chain
      • Service & Snapshot
      • Installation
        • Cosmovisor
      • Commands
      • β˜‘οΈ0G Storage Node
        • Upgrade (v0.7.3)
      • β˜‘οΈ0G Storage KV
      • β˜‘οΈ0G DA Node
        • Update
      • β˜‘οΈ0G DA Client
    • 🟒Airchains
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
        • πŸͺ’Cosmovisor
        • πŸ”ΊEVM ZK Rollup
      • πŸ•ΉοΈCommands
      • ⛓️Upgrade
    • 🟒Allora
      • πŸ”ΊWorkers
        • Create tool and worker wallet
        • Install Worker 1
        • Install Worker 2
        • Troubleshooting
        • Script for checking worker
      • Another method
      • Service
      • Installation By Dock (Recommend)
      • Installation
      • Snapshot & State sync
      • Useful commands
    • 🟒Hedge Block
      • Service
      • Installation
      • Commands
    • 🟒Dill Chain
      • Usage Commands
    • 🟒Fiamma Chain
      • πŸ₯¦Services & Snapshot
      • βš™οΈInstallation
      • πŸ›°οΈUsage Command
    • 🟒Elixir Testnet
      • βš™οΈInstallation
    • 🟒Chainbase
      • ⛓️Installation
    • πŸ”˜AXONE Protocol
      • πŸ’ΎService & Snapshot
      • βš™οΈInstallation
    • πŸ”˜Symphony
      • πŸ”ŒInstallation
      • πŸ₯¦Fresh Peer
    • πŸ”˜Empeiria
      • Installation
      • Usage Command
Powered by GitBook
On this page

Was this helpful?

  1. Testnet
  2. Allora

Another method

PreviousScript for checking workerNextService

Last updated 8 months ago

Was this helpful?

How to run a Worker Allora Random 50/50 Prediction Price

Faucet :

Install as below first. If you are using new VPS

1. Install

sudo apt-get update
sudo apt-get install -y make gcc jq
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
sudo add-apt-repository β€œdeb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
apt-cache policy docker-ce
sudo apt install docker-ce -y

2. Clone source

git clone https://github.com/allora-network/allora-huggingface-walkthrough

cd allora-huggingface-walkthrough 
mkdir -p worker-data
chmod -R 777 worker-data

cp config.example.json config.json

3. Edit config.json

Don't forget to add your mnemoric phase inside

{
    "wallet": {
        "addressKeyName": "test",
        "addressRestoreMnemonic": "<your mnemoric phase>",
        "alloraHomeDir": "/root/.allorad",
        "gas": "1000000",
        "gasAdjustment": 1.0,
        "nodeRpc": "https://allora-rpc.testnet-1.testnet.allora.network/",
        "maxRetries": 1,
        "delay": 1,
        "submitTx": false
    },
    "worker": [
        {
            "topicId": 1,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 5,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 3,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 7,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "BTC"
            }
        },
        {
            "topicId": 5,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 9,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "SOL"
            }
        },
        {
            "topicId": 7,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 5,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 8,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 7,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "BNB"
            }
        },
        {
            "topicId": 9,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 9,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ARB"
            }
        }
        
    ]
}

4. Edit init.config

chmod +x init.config
./init.config

6. Build

docker compose up --build

Check log

docker compose logs -f

Testing Inference Only

  1. Run the following command to start the inference node:

    docker compose up --build inference
  2. Send requests to the inference model. For example, request ETH price inferences:

    curl http://127.0.0.1:8000/inference/ETH 

Expected response:

{"value":"2564.021586281073"}
  1. Update the node's internal state (download pricing data, train, and update the model):

curl http://127.0.0.1:8000/update

Expected response:

0

Add Allora chain at keplr wallet . Check uALLO token number if it increases, it shows you have received reward Check Txn number you have completed here :

πŸš€
🟒
https://faucet.testnet-1.testnet.allora.network/
http://worker-tx.nodium.xyz/