-
Notifications
You must be signed in to change notification settings - Fork 8
/
remote_hc.sh
executable file
·19 lines (13 loc) · 1.07 KB
/
remote_hc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
PASS="${1:-admin}"
HOST="${2:-localhost}"
echo "====================== BITCOIND ======================"
curl -X POST -m 10 -H "Content-type: application/json" -d '{"jsonrpc": "1.0", "id":"hc", "method": "getblockchaininfo", "params":[]}' http://admin:$PASS@$HOST:9332 |jq
echo "====================== LITECOIND ======================"
curl -X POST -m 10 -H "Content-type: application/json" -d '{"jsonrpc": "1.0", "id":"hc", "method": "getblockchaininfo", "params":[]}' http://admin:$PASS@$HOST:8332 |jq
echo "====================== DOGECOIND ======================"
curl -X POST -m 10 -H "Content-type: application/json" -d '{"jsonrpc": "1.0", "id":"hc", "method": "getblockchaininfo", "params":[]}' http://admin:$PASS@$HOST:7332 |jq
echo "====================== RIPPLED ======================"
curl -X POST -m 10 -H "Content-type: application/json" -d '{"method": "server_info", "params":[{"api_version": 1}]}' http://$HOST:51234 |jq
echo "====================== ALGORAND ======================"
curl -X GET -m 10 http://$HOST:6332/v1/status -H "X-Algo-API-Token: $PASS" |jq