cardano-docker/scripts/functions/get_block
2021-02-13 10:19:38 -05:00

7 lines
142 B
Bash

#!/bin/bash
# Init vars
source /scripts/init_node_vars
BLOCK=$(cardano-cli query tip ${NETWORK_ARGUMENT} | jq -r '.blockNo')
echo "${BLOCK}"