UNPKG

@metamask/multichain-network-controller

Version:
20 lines 797 B
import type { CaipAccountId } from "@metamask/utils"; import { type ActiveNetworksResponse } from "../api/accounts-api.mjs"; /** * Service responsible for fetching network activity data from the API. */ export declare class MultichainNetworkService { #private; constructor({ fetch: fetchFunction }: { fetch: typeof fetch; }); /** * Fetches active networks for the given account IDs. * * @param accountIds - Array of CAIP-10 account IDs to fetch activity for. * @returns Promise resolving to the active networks response. * @throws Error if the response format is invalid or the request fails. */ fetchNetworkActivity(accountIds: CaipAccountId[]): Promise<ActiveNetworksResponse>; } //# sourceMappingURL=MultichainNetworkService.d.mts.map