cardano-docker/scripts/functions/get_slot

7 lines
139 B
Plaintext
Raw Normal View History

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