@ledgerhq/coin-stellar
Version:
Ledger Stellar Coin integration
10 lines • 519 B
TypeScript
import type { BlockInfo } from '@ledgerhq/coin-module-framework/api/index';
/**
* Returns lightweight metadata for a Stellar closed ledger at the given sequence.
*
* Fetches the ledger once. When `height > 1` and Horizon provides `prev_hash`,
* `BlockInfo.parent` is derived without a second request; otherwise the parent
* ledger is loaded explicitly. Genesis ledger sequence 1 has no parent.
*/
export declare function getBlockInfo(height: number): Promise<BlockInfo>;
//# sourceMappingURL=getBlockInfo.d.ts.map