Skip to content

Instantly share code, notes, and snippets.

View obycode's full-sized avatar

Brice obycode

View GitHub Profile
#!/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
}