Skip to main content

Allora

Allora script for those who want to run new nodes :

cd ~
rm -rf alloranew.sh
wget https://raw.githubusercontent.com/cryptoneth/Allora-Script-/main/alloranew.sh && chmod +x alloranew.sh && ./alloranew.sh
note

Replacement of Head ID + Recovery Phrase are clear .

Worker node-1 health command :

network_height=$(curl -s -X 'GET' 'https://allora-rpc.testnet-1.testnet.allora.network/abci_info?' -H 'accept: application/json' | jq -r .result.response.last_block_height) && \
curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Content-Type: application/json' --data '{
"function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
"method": "allora-inference-function.wasm",
"parameters": null,
"topic": "1",
"config": {
"env_vars": [
{
"name": "BLS_REQUEST_PATH",
"value": "/api"
},
{
"name": "ALLORA_ARG_PARAMS",
"value": "ETH"
},
{
"name": "ALLORA_BLOCK_HEIGHT_CURRENT",
"value": "'"${network_height}"'"
}
],
"number_of_nodes": -1,
"timeout": 3
}
}' | jq

Worker node-2 health command :

network_height=$(curl -s -X 'GET' 'https://allora-rpc.testnet-1.testnet.allora.network/abci_info?' -H 'accept: application/json' | jq -r .result.response.last_block_height) && \
curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Content-Type: application/json' --data '{
"function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
"method": "allora-inference-function.wasm",
"parameters": null,
"topic": "2",
"config": {
"env_vars": [
{
"name": "BLS_REQUEST_PATH",
"value": "/api"
},
{
"name": "ALLORA_ARG_PARAMS",
"value": "ETH"
},
{
"name": "ALLORA_BLOCK_HEIGHT_CURRENT",
"value": "'"${network_height}"'"
}
],
"number_of_nodes": -1,
"timeout": 3
}
}' | jq