Convert an IPFS URL to an HTTP gateway URL
The IPFS URL to convert (e.g., "ipfs://QmHash...")
Optional gateway URL (defaults to DEFAULT_IPFS_GATEWAY)
The HTTP gateway URL or original URL if not an IPFS URL
convertIpfsUrl("ipfs://QmHash123")// Returns: "https://ipfs.io/ipfs/QmHash123"convertIpfsUrl("ipfs://QmHash123", "https://gateway.pinata.cloud/ipfs/")// Returns: "https://gateway.pinata.cloud/ipfs/QmHash123" Copy
convertIpfsUrl("ipfs://QmHash123")// Returns: "https://ipfs.io/ipfs/QmHash123"convertIpfsUrl("ipfs://QmHash123", "https://gateway.pinata.cloud/ipfs/")// Returns: "https://gateway.pinata.cloud/ipfs/QmHash123"
Convert an IPFS URL to an HTTP gateway URL