UNPKG

@ledgerhq/coin-hedera

Version:
12 lines 584 B
import type { BlockInfo } from "@ledgerhq/coin-module-framework/api/index"; /** * Gets the latest "block" information for Hedera. * * Hedera doesn't have actual blocks - it uses a timestamp-based consensus model. * To make Hedera compatible with block-based architecture: * 1. We fetch the most recent transaction from the mirror node * 2. Extract its consensus timestamp * 3. Convert this timestamp into a synthetic block using a hardcoded time window (10 seconds by default) */ export declare function lastBlock(): Promise<BlockInfo>; //# sourceMappingURL=lastBlock.d.ts.map