#!/usr/bin/env bash set -euo pipefail LOG_FILE=${1:-logs/diagnostics/multicall_samples.log} LIMIT=${2:-10} if [[ ! -f "$LOG_FILE" ]]; then echo "No diagnostic log found at $LOG_FILE" >&2 exit 1 fi echo "Found entries (showing up to $LIMIT):" awk '{print NR"|"$0}' "$LOG_FILE" | tail -n "$LIMIT" echo "\nTo fetch calldata for an entry (requires network + API key):" echo " export ARBISCAN_API_KEY=" echo " ./scripts/fetch_arbiscan_tx.sh | jq -r '.result.input'"