#!/bin/bash


# Use common authentication utility (robust path)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/common_auth.sh" "$@"

curl -s -X GET $PARTICIPANT_API_ENDPOINT/v2/state/ledger-end -H "Authorization: Bearer $CANTON_TOKEN" | jq .

