Skip to content

Instantly share code, notes, and snippets.

@hexfusion
Last active September 30, 2022 16:12
Show Gist options
  • Save hexfusion/292302df311927b270461ad5a275598f to your computer and use it in GitHub Desktop.
Save hexfusion/292302df311927b270461ad5a275598f to your computer and use it in GitHub Desktop.
#!/bin/bash
# start server in another window
# avalanche-network-runner server \
# --log-level debug \
# --port=":8080" \
# --grpc-gateway-port=":8081"
# tested with v1.8.6
AVALANCHEGO_EXEC_PATH=""
AVALANCHEGO_PLUGIN_PATH=""
cat <<EOF > /tmp/minikvvm.genesis.json
{
"author": "foo",
"welcome_message": "bar"
}
EOF
avalanche-network-runner control start \
--log-level debug \
--endpoint="0.0.0.0:8080" \
--number-of-nodes=5 \
--avalanchego-path ${AVALANCHEGO_EXEC_PATH} \
--plugin-dir ${AVALANCHEGO_PLUGIN_PATH} \
--blockchain-specs '[{"vm_name": "minikvvm", "genesis": "/tmp/minikvvm.genesis.json"}]'
@hexfusion
Copy link
Author

health

curl -X POST --data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"health.health"
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/health

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment