This commit is contained in:
Sebastian
2024-09-12 13:35:23 +02:00
parent a66e72528f
commit d930c640ba

View File

@@ -95,7 +95,8 @@ while IFS= read -r url; do
export TEST_URL="$RPC_URL"
export WS_URL=$(echo "$url" | sed -e 's|^http://|ws://|' -e 's|^https://|wss://|')
export PROVIDER=$(echo "$url" | sed -e 's|^https\?://||' -e 's|/|-|g' -e 's|\.|-|g')
export ID=$PROVIDER
response_file=$(mktemp)
http_status_code=$(curl --ipv4 -m 5 -s -o "$response_file" -w "%{http_code}" -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' $TEST_URL)