@ledgerhq/coin-tezos
Version:
10 lines • 477 B
TypeScript
import type { TezosContext } from '../config';
import type { BlockInfo } from '@ledgerhq/coin-module-framework/api/index';
/**
* Returns lightweight metadata for a Tezos block at the given level.
*
* Fetches the block and its predecessor in parallel so that `BlockInfo.parent`
* is always populated without adding serial latency.
*/
export declare function getBlockInfo(context: TezosContext, height: number): Promise<BlockInfo>;
//# sourceMappingURL=getBlockInfo.d.ts.map