wait_for_devnet.sh 243 B

123456
  1. #!/bin/bash
  2. set -e
  3. # Wait for sui to start
  4. while [[ "$(curl -X POST -H "Content-Type: application/json" -d '{ "jsonrpc":"2.0", "method":"rpc.discover","id":1 }' -s -o /dev/null -w '%{http_code}' 0.0.0.0:9000/)" != "200" ]]; do sleep 1; done