cardano-docker/scripts/functions/get_block

7 lines
142 B
Plaintext
Raw Normal View History

2021-02-13 15:19:38 +00:00
#!/bin/bash
# Init vars
source /scripts/init_node_vars
BLOCK=$(cardano-cli query tip ${NETWORK_ARGUMENT} | jq -r '.blockNo')
echo "${BLOCK}"