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
#!/bin/bash | |
# Set your node's API endpoints | |
INFO_URL="http://localhost:20443/v2/info" | |
ACCOUNT_URL="http://localhost:20443/v2/accounts/ST34CYSTX9853GG3TDY4FQZ9FM6F386MT0FHM0DMS?proof=0" | |
# Function to get the current block height | |
get_current_block_height() { | |
curl -s -X GET "$INFO_URL" | jq .burn_block_height | |
} |
OlderNewer