import { getEnv } from "@ledgerhq/live-env";
export const findCurrencyExplorer = (currency) => {
    if (getEnv("SATSTACK") && currency.id === "bitcoin") {
        return {
            endpoint: getEnv("EXPLORER_SATSTACK"),
            id: "btc",
            version: "v3",
        };
    }
    if (currency.explorerId == null) {
        console.warn("no explorerId for", currency.id);
    }
    return {
        endpoint: getEnv("EXPLORER"),
        id: currency.explorerId ?? currency.id,
        version: "v4",
    };
};
//# sourceMappingURL=explorer.js.map