docker rm -f $(docker ps -a -q) && docker system prune --volumes -a -f
Enter Allora-Chain Directory :
Enter the basic-coin-prediction-node Directory :
cd basic-coin-prediction-node
Let's go into the docker-compose.yml file :
Your TimeOut here is 5, let's increase it to 10.
--topic=allora-topic-1-worker
docker compose build
docker compose up -d
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"
}
],
"number_of_nodes": -1,
"timeout": 2
}
}'
{
"code": "200",
"request_id": "03001a39-4387-467c-aba1-c0e1d0d44f59",
"results": [
{
"result": {
"stdout": "{\"value\":\"2564.021586281073\"}",
"stderr": "",
"exit_code": 0
},
"peers": [
"12D3KooWG8dHctRt6ctakJfG5masTnLaKM6xkudoR5BxLDRSrgVt"
],
"frequency": 100
}
],
"cluster": {
"peers": [
"12D3KooWG8dHctRt6ctakJfG5masTnLaKM6xkudoR5BxLDRSrgVt"
]
}
}