diff --git a/src/cardano.ts b/src/cardano.ts index 900247e..c1a7d80 100644 --- a/src/cardano.ts +++ b/src/cardano.ts @@ -141,6 +141,11 @@ export class SyncClient { } } + async readTip(): Promise { + const res = await this.inner.readTip({}); + return blockRefToPoint(res.tip!); + } + async fetchBlock(p: ChainPoint): Promise { const req = pointToBlockRef(p); const res = await this.inner.fetchBlock({ ref: [req] });