UNPKG

@keplr-ewallet/ewallet-sdk-cosmos

Version:
17 lines (13 loc) 415 B
import type { Key, SettledResponse, SettledResponses, } from "@keplr-wallet/types"; import type { CosmosEWalletInterface } from "@keplr-ewallet-sdk-cosmos/types"; export async function getKeysSettled( this: CosmosEWalletInterface, chainIds: string[], ): Promise<SettledResponses<Key>> { await this.waitUntilInitialized; return Promise.allSettled(chainIds.map((chainId) => this.getKey(chainId))); }