You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add example of how to filter the requests from mainnets
# Define an array of networks you care about
networks=("network1" "network2" "network3" ... "network15")
# Construct the jq filter dynamically
jq_filter='.[] | select(.network | IN('
for network in "${networks[@]}"; do
jq_filter+='"'$network'",'
done
jq_filter=${jq_filter%,}'))' # Remove the trailing comma and close the parenthesis
# Use the constructed filter with curl and jq
curl -s -X GET \
-H "Content-Type: application/json" \
http://localhost:5000/mainnets | jq "$jq_filter"
The text was updated successfully, but these errors were encountered:
Add example of how to filter the requests from mainnets
The text was updated successfully, but these errors were encountered: