export type GetApiApiMetadataUserWalletLookupArgs = {email: string}; export type GetApiApiMetadataUserWalletLookupOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Allowed user roles:


get user wallet from email * * GET /api/metadata/user/wallet/lookup */ export const getApiApiMetadataUserWalletLookup = async (args: GetApiApiMetadataUserWalletLookupArgs, options?: GetApiApiMetadataUserWalletLookupOptions) => { const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") if (args.email != null) query.append("email", String(args.email)) const url = `${baseUrl.replace(/\/+$/, '')}/api/metadata/user/wallet/lookup${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };