Skip to content

Instantly share code, notes, and snippets.

View tasosbit's full-sized avatar

Tasos Bitsios tasosbit

  • Algorand Foundation
View GitHub Profile
@tasosbit
tasosbit / arc19.ts
Created October 1, 2025 15:10
arc19/3 image URL fetcher
import { AlgorandClient } from '@algorandfoundation/algokit-utils'
import { decodeAddress } from 'algosdk'
import { CID, CIDVersion } from 'multiformats/cid'
import * as digest from 'multiformats/hashes/digest'
import * as mfsha2 from 'multiformats/hashes/sha2'
export const IPFS_GATEWAY = 'https://ipfs.algonode.xyz/ipfs'
// Resolve RESERVE > URL for metadata
function _getMetadataUrl(reserve: string, url: string): string {