Skip to content

Commit

Permalink
tendermint-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 18, 2023
1 parent 1f3f096 commit 0cd6063
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 @@ -39,6 +39,9 @@ jobs:
elif [ "$type" = "tendermint-http" ]; then
response=$(curl -s "${url}/status")
status_check=$(echo "$response" | jq -e '.jsonrpc' &> /dev/null && echo "true" || echo "false")
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")
else
echo "⏭️ Skipping unsupported endpoint type: $type"
status_check="skip"
Expand Down

0 comments on commit 0cd6063

Please sign in to comment.