Created
October 11, 2022 08:57
-
-
Save assafmo/bb6aa244517071eaf2e04ff46ae7f9d9 to your computer and use it in GitHub Desktop.
Last block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch $'curl -s localhost:26657/status | | |
jq .result.sync_info.latest_block_time | | |
perl -pe "s/\.\d+Z/Z/" | | |
jq -r \'"Last block: " + (now - (. | fromdate) | floor | tostring) + " seconds ago"\'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment