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

7 lines
139 B
Bash

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