import axios, { AxiosResponse } from 'axios'; import { MetadataJson } from './../types'; export const lookup = async (url: string): Promise => { try { const { data } = await axios.get>(url); return data; } catch { throw new Error(`unable to get metadata json from url ${url}`); } };