-
Notifications
You must be signed in to change notification settings - Fork 9
/
hc-testnet.sh
executable file
·18 lines (12 loc) · 1.07 KB
/
hc-testnet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
PASS="${1:-admin}"
echo "====================== BITCOIND ======================"
curl -X POST -m 10 -H "Content-type: application/json" -d '{"jsonrpc": "1.0", "id":"hc", "method": "getblockchaininfo", "params":[]}' http://admin:$PASS@localhost:18332 |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@localhost:19332 |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@localhost:44555 |jq
echo "====================== RIPPLED ======================"
curl -X POST -m 10 -H "Content-type: application/json" -d '{"method": "server_info", "params":[{"api_version": 1}]}' http://localhost:11234 |jq
echo "====================== ALGORAND ======================"
curl -X GET -m 10 http://localhost:18080/v2/status -H "X-Algo-API-Token: $PASS" |jq