Add RPC API check

This commit is contained in:
Michael Vines
2018-12-24 11:10:53 -08:00
parent f38345fdad
commit 1531a1777a
2 changed files with 19 additions and 1 deletions

View File

@ -82,6 +82,15 @@ echo "--- Node count"
rm -rf $client_id
) || flag_error
echo "--- RPC API: getTransactionCount"
(
set -x
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://localhost:8899
) || flag_error
killBackgroundCommands
echo "--- Ledger verification"