@ledgerhq/ledger-cal-service
Version:
Ledger CAL service client
38 lines • 1.05 kB
TypeScript
import { type ServiceOption } from "./common";
export declare class NoNetworksFound extends Error {
constructor();
}
export type Network = {
id: string;
name: string;
coin: string;
chainId: number;
coinType: number;
family: string;
networkType: "main" | "test";
tokenStandard?: string;
appName: string;
};
export declare const getCachedNetworks: import("@ledgerhq/live-network/cache").CacheRes<[id: any, opt: any], {
id: string;
name: string;
coin: string;
chainId: number;
coinType: number;
family: string;
networkType: "test" | "main";
tokenStandard: string | undefined;
appName: string;
}[]>;
export declare function getNetworks(id: string | null | undefined, { env, ref }: Omit<ServiceOption, "signatureKind">): Promise<{
id: string;
name: string;
coin: string;
chainId: number;
coinType: number;
family: string;
networkType: "test" | "main";
tokenStandard: string | undefined;
appName: string;
}[]>;
//# sourceMappingURL=networks.d.ts.map