Files
khadhroony-bot3/scripts/fetch_metaplex_token_metadata_idl.sh

11 lines
512 B
Bash
Executable File

#!/usr/bin/env bash
# file: scripts/fetch_metaplex_token_metadata_idl.sh
# version: 1
set -euo pipefail
readonly URL="https://raw.githubusercontent.com/metaplex-foundation/mpl-token-metadata/main/idls/token_metadata.json"
readonly OUTPUT="idls/metadata.metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s.metaplex_token_metadata.V1_14_0.from_github_mpl-token-metadata.json"
curl --fail --location --silent --show-error "$URL" --output "$OUTPUT"
python3 -m json.tool "$OUTPUT" >/dev/null
printf 'Fetched %s\n' "$OUTPUT"