Skip to content

Instantly share code, notes, and snippets.

@s-grzesik
Created August 30, 2018 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-grzesik/8122f5903c0dfae2e5094060a31c679d to your computer and use it in GitHub Desktop.
Save s-grzesik/8122f5903c0dfae2e5094060a31c679d to your computer and use it in GitHub Desktop.
$ sls invoke -f list_backends | python -c "import sys,json; print(json.loads(sys.stdin.read())['body'])" | python -m "json.tool"
[
{
"block_number": 7849400.0,
"url": "http://kovan-parity-1.rumblefishdev.com:8545",
"is_healthy": true,
"is_leader": false,
"when_added": "2018-07-02T11:50:49.281928"
},
{
"block_number": 7849400.0,
"url": "https://kovan.infura.io/kb56QStVQWIFv1n5fRfn",
"is_healthy": true,
"is_leader": true,
"when_added": "2018-07-02T11:50:47.762447"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment