Skip to content

Instantly share code, notes, and snippets.

View clemensgg's full-sized avatar

Claimens | CryptoCrew Validators clemensgg

View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
# LCD base URL (first arg) or default to localhost
LCD="${1:-https://babylon.nodes.guru/api}"
PAGE_LIMIT=100
# Fetch total bonded tokens
TOTAL=$(curl -s "$LCD/cosmos/staking/v1beta1/pool" \
| jq -r '.pool.bonded_tokens')