Skip to content

Commit

Permalink
cosmos-http
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 18, 2023
1 parent 0cd6063 commit 8d64283
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
elif [ "$type" = "tendermint-rpc" ]; then
response=$(curl -s --header "Content-Type: application/json" --request POST --data '{"method": "status", "params": [], "id": 1}' "$url")
status_check=$(echo "$response" | jq -e '.id' &> /dev/null && echo "true" || echo "false")
elif [ "$type" = "cosmos-http" ]; then
response=$(curl -s "${url}/cosmos/base/tendermint/v1beta1/blocks/latest")
status_check=$(echo "$response" | jq -e '.block_id.hash' &> /dev/null && echo "true" || echo "false")
else
echo "⏭️ Skipping unsupported endpoint type: $type"
status_check="skip"
Expand Down

0 comments on commit 8d64283

Please sign in to comment.