Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions scripts/check_cosmwasm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/bin/bash

TESTNET_ENDPOINTS=(
"https://pisco-lcd.terra.dev"
"https://juno-testnet-api.polkachu.com"
"https://rest.elgafar-1.stargaze-apis.com"
"https://api.andromedaprotocol.io/rest/testnet"
"https://k8s.testnet.lcd.injective.network"
"https://api.constantine.archway.io"
"https://rest-falcron.pion-1.ntrn.tech"
"https://api-testnet5.composable-cosmos.composablenodes.tech"
"https://rest.flixnet-4.omniflix.network:443"
"https://testnet-api.pryzm.zone"
"https://terp-testnet-api.itrocket.net"
"https://stride.testnet-1.stridenet.co/api"
"https://full-node.testnet-1.coreum.dev:1317"
"https://vota-testnet-rest.dorafactory.org"
"https://rest.testnet2.persistence.one"
"https://lcd.testnet-1.nibiru.fi"
"https://titan-testnet-lcd.titanlab.io:443"
"https://api.cheqd.network"
"https://kujira-testnet-api.polkachu.com"
"https://migaloo-testnet-api.polkachu.com"
"https://api.sandbox.nymtech.net"
"https://lcd.testnet-2.nibiru.fi"
"https://lcd.aura.network"
"https://lcd.testnet.seda.xyz"
"https://quasar-testnet-api.polkachu.com"
"https://lcd.morpheus.desmos.network"
"https://canon-4.api.network.umee.cc"
"https://nois-testnet-api.polkachu.com"
"https://lcd.dhealth.com"
"https://realio-api.genznodes.dev"
"https://rest-dorado.fetch.ai"
"https://api.gopanacea.org"
"https://node.testnet.like.co"
"https://evmos.test.api.coldyvalidator.net"
"https://api-challenge.blockchain.ki"
"https://dydx-testnet-api.polkachu.com"
"https://lcd.testnet.osmosis.zone"
)

MAINNET_ENDPOINTS=(
"https://api.andromedaprotocol.io/rest/mainnet"
"https://lcd-phoenix.keplr.app"
"https://api.mainnet.archway.io"
"https://sentry.lcd.injective.network"
"https://neutron-lcd.publicnode.com"
"https://lcd-stargaze.keplr.app"
"https://lcd.aura.network"
"https://rest-coreum.ecostake.com"
"https://rest.core.persistence.one"
"https://migaloo-api.polkachu.com"
"https://lcd.nibiru.fi"
"https://nym-api.polkachu.com"
"https://umee-api.polkachu.com"
"https://titan-lcd.titanlab.io"
"https://juno-rest.publicnode.com"
"https://api.mainnet.desmos.network"
"https://api.chihuahua.wtf"
"https://rest.omniflix.network"
)

if [ "$1" == "mainnet" ]; then
ENDPOINTS=("${MAINNET_ENDPOINTS[@]}")
elif [ "$1" == "testnet" ]; then
ENDPOINTS=("${TESTNET_ENDPOINTS[@]}")
else
echo "Usage: $0 [mainnet|testnet]"
exit 1
fi

for URL in "${ENDPOINTS[@]}"; do
echo -n "$URL => "
RESPONSE=$(curl -s "$URL/cosmos/base/tendermint/v1beta1/node_info")
if echo "$RESPONSE" | grep -q "github.com/CosmWasm/wasmvm/v2"; then
echo "✅ Found CosmWasm 2.2+"
elif echo "$RESPONSE" | grep -q "github.com/CosmWasm/wasmvm"; then
echo "⚠️ Found CosmWasm 1.x"
else
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$URL/cosmos/base/tendermint/v1beta1/node_info")
echo "❌ Error: HTTP Status $STATUS_CODE"
fi
done



# "https://sei-chain-incentivized.com/sei-chain-app"
# "https://lcd.serenity.aura.network"
# "https://test3-rest.comdex.one"
Loading