Skip to content

Instantly share code, notes, and snippets.

@wileyj
wileyj / stxdev.sh
Created May 23, 2025 19:16 — forked from obycode/stxdev.sh
Tools for dealing with blocks
#!/bin/bash
API_BASE="https://api.hiro.so"
# Check if HIRO_API_KEY is set
if [ -n "$HIRO_API_KEY" ]; then
AUTH_HEADER="-H \"Authorization: Bearer $HIRO_API_KEY\""
else
AUTH_HEADER=""
fi