Advertisement
EvenoR

Untitled

Jul 30th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. 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) && \
  2. curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Content-Type: application/json' --data '{
  3. "function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
  4. "method": "allora-inference-function.wasm",
  5. "parameters": null,
  6. "topic": "5",
  7. "config": {
  8. "env_vars": [
  9. {
  10. "name": "BLS_REQUEST_PATH",
  11. "value": "/api"
  12. },
  13. {
  14. "name": "ALLORA_ARG_PARAMS",
  15. "value": "ETH"
  16. },
  17. {
  18. "name": "ALLORA_BLOCK_HEIGHT_CURRENT",
  19. "value": "'"${network_height}"'"
  20. }
  21. ],
  22. "number_of_nodes": -1,
  23. "timeout": 10
  24. }
  25. }' | jq
  26.  
  27.  
  28. --------------
  29.  
  30.  
  31. 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) && \
  32. curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Content-Type: application/json' --data '{
  33. "function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
  34. "method": "allora-inference-function.wasm",
  35. "parameters": null,
  36. "topic": "6",
  37. "config": {
  38. "env_vars": [
  39. {
  40. "name": "BLS_REQUEST_PATH",
  41. "value": "/api"
  42. },
  43. {
  44. "name": "ALLORA_ARG_PARAMS",
  45. "value": "ETH"
  46. },
  47. {
  48. "name": "ALLORA_BLOCK_HEIGHT_CURRENT",
  49. "value": "'"${network_height}"'"
  50. }
  51. ],
  52. "number_of_nodes": -1,
  53. "timeout": 10
  54. }
  55. }' | jq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement