UNPKG

@hashgraphonline/standards-sdk

Version:

The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.

26 lines (25 loc) 647 B
import { HederaMirrorNode } from "./standards-sdk.es29.js"; async function accountIdsToExemptKeys(accountIds, network, logger) { const mirrorNode = new HederaMirrorNode( network, logger ); const exemptKeys = []; for (const accountId of accountIds) { try { const publicKey = await mirrorNode.getPublicKey(accountId); exemptKeys.push(publicKey); } catch (error) { if (logger) { logger.warn( `Could not get public key for account ${accountId}: ${error}` ); } } } return exemptKeys; } export { accountIdsToExemptKeys }; //# sourceMappingURL=standards-sdk.es23.js.map